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);
|
||||
gameOverMessage(endMsg, MISS_MSG, 0, FALSE);
|
||||
setEventTrigger(checkEndConditions, inactive);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
@ -289,9 +290,12 @@ event checkEndConditions (endConditions)
|
|||
//check computer/babas are wiped out completely
|
||||
while(playnum<8)
|
||||
{
|
||||
if(anyDroidsLeft(playnum) or anyStructButWallsLeft(playnum))
|
||||
if(not isHumanPlayer(playnum))
|
||||
{
|
||||
gamenotwon = TRUE;
|
||||
if(anyDroidsLeft(playnum) or anyStructButWallsLeft(playnum))
|
||||
{
|
||||
gamenotwon = TRUE;
|
||||
}
|
||||
}
|
||||
playnum = playnum + 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue