- fixed a bug with difficulty sliders re-enabling AIs after AIs were disabled by host

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1732 4a71c877-e1ca-e34f-864e-861f7616d084
master
Roman C 2007-05-28 17:47:08 +00:00
parent 3dc727f709
commit 089fe0b7f1
1 changed files with 2 additions and 2 deletions

View File

@ -1485,8 +1485,8 @@ UDWORD addPlayerBox(BOOL players)
sFormInit.pDisplay = displayPlayer;//intDisplayButtonHilight;
sFormInit.pUserData = (void*) i;
widgAddForm(psWScreen, &sFormInit);
addFESlider(MULTIOP_SKSLIDE+i,sFormInit.id, 43,9,
DIFF_SLIDER_STOPS, DIFF_SLIDER_STOPS / 2, 0); //set to 50%
addFESlider(MULTIOP_SKSLIDE+i,sFormInit.id, 43,9, DIFF_SLIDER_STOPS,
(game.skDiff[i] <= DIFF_SLIDER_STOPS ? game.skDiff[i] : DIFF_SLIDER_STOPS / 2), 0); //set to 50% (value of UBYTE_MAX == human player)
}
}
}