1
NeoLemmix Main / Re: Don't exit on losing all lemmings (feature development)
« on: May 01, 2024, 03:10:32 PM »
OK, even better.
This time, we factor in IsOutOfTime as well.
This now only returns CR_UNDETERMINED if the level has an infinite time limit. Otherwise, if the time limit has been reached and the result is non-Success, it returns CR_FAIL. Not sure why it wasn't always like this tbh, there are probably reasons. But, this works nicely.
New .exe attached. We'll call this one The 4pm Version
This time, we factor in IsOutOfTime as well.
Code: [Select]
if (Game.CurrentIteration > CutoffFrame) or
Game.IsOutOfTime or Game.StateIsUnplayable then
begin
Game.Finish(GM_FIN_TERMINATE);
if Game.GameResultRec.gSuccess then
fReplays[i].ReplayResult := CR_PASS;
if Game.GameResultRec.gGotTalisman then
fReplays[i].ReplayResult := CR_PASS_TALISMAN;
if (Game.StateIsUnplayable or Game.IsOutOfTime) <------------------------------------
and not Game.GameResultRec.gSuccess then <--------changed these lines------
fReplays[i].ReplayResult := CR_FAIL; <------------------------------------
Break;
end;
This now only returns CR_UNDETERMINED if the level has an infinite time limit. Otherwise, if the time limit has been reached and the result is non-Success, it returns CR_FAIL. Not sure why it wasn't always like this tbh, there are probably reasons. But, this works nicely.
New .exe attached. We'll call this one The 4pm Version