Converted one signed char to bool too many.

This prevented new aliens from being generated throughout the mission,
making certain missions impossible to complete.
This commit is contained in:
Guus Sliepen 2011-08-27 17:17:54 +02:00
parent d80d1af89c
commit 4d78603139
1 changed files with 2 additions and 2 deletions

View File

@ -609,7 +609,7 @@ bool allMissionsCompleted()
}
}
bool remaining = false;
signed char remaining;
bool add = false;
bool allDone = true;
@ -650,7 +650,7 @@ bool allMissionsCompleted()
// We've only got one objective left and it's destroy all targets,
// so stop adding aliens (otherwise it might be impossible to finish!)
if ((add) && (remaining))
if ((add) && (remaining == 1))
engine.addAliens = -1;
return allDone;