From 496b2a73fd06c4bab3455627d8ec021fdace4333 Mon Sep 17 00:00:00 2001 From: Per Inge Mathisen Date: Sun, 9 Mar 2008 15:45:05 +0000 Subject: [PATCH] game.maxPlayers cleanup - remove unnecessary references. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3977 4a71c877-e1ca-e34f-864e-861f7616d084 --- src/configuration.c | 12 ------------ src/init.c | 2 -- src/keybind.c | 2 -- src/multiint.c | 14 ++++---------- src/multimenu.c | 6 ------ src/multiopt.c | 2 -- 6 files changed, 4 insertions(+), 34 deletions(-) diff --git a/src/configuration.c b/src/configuration.c index 40b99ebc1..9545d12c9 100644 --- a/src/configuration.c +++ b/src/configuration.c @@ -410,17 +410,6 @@ BOOL loadConfig(void) setWarzoneKeyNumeric("base", game.base); } - //maxplay - if(getWarzoneKeyNumeric("maxPlay", &val)) - { - game.maxPlayers =(UBYTE)val; - } - else - { - game.maxPlayers = 4; - setWarzoneKeyNumeric("maxPlay", game.maxPlayers); - } - //alliance if(getWarzoneKeyNumeric("alliance", &val)) { @@ -626,7 +615,6 @@ BOOL saveConfig(void) setWarzoneKeyNumeric("type", game.type); // game type setWarzoneKeyNumeric("base", game.base); // size of base setWarzoneKeyNumeric("fog", game.fog); // fog 'o war - setWarzoneKeyNumeric("maxPlay", game.maxPlayers); // max no of players setWarzoneKeyNumeric("alliance", game.alliance); // allow alliances setWarzoneKeyString("forceName", sForceName); // force setWarzoneKeyString("playerName",(char*)sPlayer); // player name diff --git a/src/init.c b/src/init.c index 0f297b7bc..371d11455 100644 --- a/src/init.c +++ b/src/init.c @@ -412,8 +412,6 @@ BOOL systemInitialise(void) buildMapList(); - //loadLevels(DIR_CAMPAIGN); - // Initialize render engine war_SetFog(FALSE); if (!pie_Initialise()) { diff --git a/src/keybind.c b/src/keybind.c index 24452c7a1..029192df5 100644 --- a/src/keybind.c +++ b/src/keybind.c @@ -2439,8 +2439,6 @@ BOOL processConsoleCommands( char *pName ) { char tmpStr[255]; - - /* saveai x */ for(i=0;ipsNext; return TRUE; } - - } lev = lev->psNext; } @@ -778,8 +776,6 @@ void displayMultiPlayer(WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset, PIELIG if(isHumanPlayer(player) || (game.type == SKIRMISH && player