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-861f7616d084
master
Roman C 2007-07-21 13:13:21 +00:00
parent 74af7fefa1
commit 74c29b312f
1 changed files with 6 additions and 2 deletions

View File

@ -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;
}