Fix end condition checking for the multiplayer campaign game mode.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2151 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
74af7fefa1
commit
74c29b312f
|
@ -262,6 +262,7 @@ event checkEndConditions (endConditions)
|
||||||
// gameOver(FALSE);
|
// gameOver(FALSE);
|
||||||
gameOverMessage(endMsg, MISS_MSG, 0, FALSE);
|
gameOverMessage(endMsg, MISS_MSG, 0, FALSE);
|
||||||
setEventTrigger(checkEndConditions, inactive);
|
setEventTrigger(checkEndConditions, inactive);
|
||||||
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -288,11 +289,14 @@ event checkEndConditions (endConditions)
|
||||||
|
|
||||||
//check computer/babas are wiped out completely
|
//check computer/babas are wiped out completely
|
||||||
while(playnum<8)
|
while(playnum<8)
|
||||||
|
{
|
||||||
|
if(not isHumanPlayer(playnum))
|
||||||
{
|
{
|
||||||
if(anyDroidsLeft(playnum) or anyStructButWallsLeft(playnum))
|
if(anyDroidsLeft(playnum) or anyStructButWallsLeft(playnum))
|
||||||
{
|
{
|
||||||
gamenotwon = TRUE;
|
gamenotwon = TRUE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
playnum = playnum + 1;
|
playnum = playnum + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue