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-861f7616d084master
parent
46a2f0ade2
commit
2cce50c2ad
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue