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:
parent
d80d1af89c
commit
4d78603139
|
@ -609,7 +609,7 @@ bool allMissionsCompleted()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool remaining = false;
|
signed char remaining;
|
||||||
bool add = false;
|
bool add = false;
|
||||||
bool allDone = true;
|
bool allDone = true;
|
||||||
|
|
||||||
|
@ -650,7 +650,7 @@ bool allMissionsCompleted()
|
||||||
|
|
||||||
// We've only got one objective left and it's destroy all targets,
|
// We've only got one objective left and it's destroy all targets,
|
||||||
// so stop adding aliens (otherwise it might be impossible to finish!)
|
// so stop adding aliens (otherwise it might be impossible to finish!)
|
||||||
if ((add) && (remaining))
|
if ((add) && (remaining == 1))
|
||||||
engine.addAliens = -1;
|
engine.addAliens = -1;
|
||||||
|
|
||||||
return allDone;
|
return allDone;
|
||||||
|
|
Loading…
Reference in New Issue