Allow to disable all AIs in a multiplayer game with more than 1 human.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2154 4a71c877-e1ca-e34f-864e-861f7616d084
master
Roman C 2007-07-21 14:18:40 +00:00
parent 46a2f0ade2
commit 2cce50c2ad
1 changed files with 5 additions and 3 deletions

View File

@ -2339,12 +2339,14 @@ static void processMultiopWidgets(UDWORD id)
UDWORD newValue, oldValue;
if( (id-MULTIOP_SKSLIDE == game.maxPlayers-1)
//&& (game.skDiff[id-MULTIOP_SKSLIDE] == 0)
&& (widgGetSliderPos(psWScreen,id) == 0)
)
{
game.skDiff[id-MULTIOP_SKSLIDE] = 1;
widgSetSliderPos(psWScreen,id,1);
if((NetPlay.bComms == 0) || (NetPlay.playercount == 1)) //allow to disable all AIs in an mp game
{
game.skDiff[id-MULTIOP_SKSLIDE] = 1;
widgSetSliderPos(psWScreen,id,1);
}
}
newValue = widgGetSliderPos(psWScreen,id);