add MAXPLAYERS to SYSCF (trunk only)

Add MAXPLAYERS to SYSCF config file; deprecate (but continue to support)
 MAX_NR_OF_PLAYERS in nethack.sh since it is trivially overridden in many
 (all?) cases and isn't useful for ports that don't use nethack.sh.
This commit is contained in:
keni
2008-04-07 22:27:18 +00:00
parent 47d1eea0dd
commit 97abafd41a
7 changed files with 28 additions and 2 deletions

View File

@@ -149,6 +149,9 @@
* available in a global config space, with the compiled-in
* entries as defaults:
* WIZARD ( a value of * allows anyone to be wizard)
* MAXPLAYERS (see MAX_NR_OF_PLAYERS above and nethack.sh)
* SUPPORT (how to get local support)(no default)
* RECOVER (how to recover a game at your site)(no default)
*
* The following options select how the config space is stored:
* SYSCF_FILE in the named file
@@ -270,7 +273,8 @@
/*
* If it is desirable to limit the number of people that can play Hack
* simultaneously, define HACKDIR, SECURE and MAX_NR_OF_PLAYERS.
* simultaneously, define HACKDIR, SECURE and MAX_NR_OF_PLAYERS (or use
* MAXPLAYERS under SYSCF).
* #define MAX_NR_OF_PLAYERS 6
*/
#endif /* CHDIR */

View File

@@ -13,6 +13,7 @@ struct sysopt {
char *support; /* local support contact */
char *recover; /* how to run recover - may be overridden by win port */
char *wizards;
int maxplayers;
};
E struct sysopt sysopt;