diff options
author | Fabian Greffrath | 2015-03-30 16:34:12 +0200 |
---|---|---|
committer | Fabian Greffrath | 2015-03-30 16:57:42 +0200 |
commit | a64ebd8e36b6cd13f18163d0a3365f4e80d90805 (patch) | |
tree | 9f1c93a10e4e9ad1c9f370ff57c261b0c60b1d22 /src/hexen/h2_main.c | |
parent | 27b5915111ffbdae97ce0c415157e104ee6f3493 (diff) | |
download | chocolate-doom-a64ebd8e36b6cd13f18163d0a3365f4e80d90805.tar.gz chocolate-doom-a64ebd8e36b6cd13f18163d0a3365f4e80d90805.tar.bz2 chocolate-doom-a64ebd8e36b6cd13f18163d0a3365f4e80d90805.zip |
Turn maxplayers into a global variable
... and decrease its value from MAXPLAYERS (i.e. 8) to 4 if
(gamemode == shareware). It seems that it was hard-coded to this value
until some time between the releases of the Demo and the Full version.
Arrays are still declared with their full width of 8, though, they are
just not iterated over the whole range anymore. This fixes playback of
the IWAD demos.
Diffstat (limited to 'src/hexen/h2_main.c')
-rw-r--r-- | src/hexen/h2_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hexen/h2_main.c b/src/hexen/h2_main.c index c907d29c..7084ceec 100644 --- a/src/hexen/h2_main.c +++ b/src/hexen/h2_main.c @@ -113,6 +113,7 @@ boolean autostart; boolean advancedemo; FILE *debugfile; int UpdateState; +int maxplayers = MAXPLAYERS; // PRIVATE DATA DEFINITIONS ------------------------------------------------ @@ -266,6 +267,7 @@ void D_IdentifyVersion(void) W_CheckNumForName("MAP05") == -1 ) { gamemode = shareware; + maxplayers = 4; } } |