Fix the second file checking end condition from the mp folder.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2152 4a71c877-e1ca-e34f-864e-861f7616d084
master
Roman C 2007-07-21 13:16:56 +00:00
parent 74c29b312f
commit 8fdfad5a67
1 changed files with 6 additions and 3 deletions

View File

@ -133,7 +133,7 @@ event initialisedEvent2(CALL_GAMEINIT)
setStructureLimits(factory, 5, playnum); // set structure limits setStructureLimits(factory, 5, playnum); // set structure limits
setStructureLimits(powerGen, 5, playnum); setStructureLimits(powerGen, 5, playnum);
setStructureLimits(research, 3, playnum); setStructureLimits(research, 5, playnum);
setStructureLimits(command, 1, playnum); setStructureLimits(command, 1, playnum);
setStructureLimits(commandrelay,1, playnum); setStructureLimits(commandrelay,1, playnum);
setStructureLimits(cybfac, 5, playnum); setStructureLimits(cybfac, 5, playnum);
@ -289,9 +289,12 @@ event checkEndConditions (endConditions)
//check computer/babas are wiped out completely //check computer/babas are wiped out completely
while(playnum<8) 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; playnum = playnum + 1;
} }