Skip to content

Commit

Permalink
Fixed not resetting properly for multiple ending runners
Browse files Browse the repository at this point in the history
  • Loading branch information
NintwnDude879 committed Nov 23, 2023
1 parent aca6e23 commit 3392320
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FNaFSBAutoSplitter.asl
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ update {
#endregion

//Reset variables on starting a new game (even if you don't reset for new game)
if (vars.getHour() == -1 && vars.getMinute() == 0 && vars.getOldHour() != -1 && vars.getOldMinute() != 0){
if ((vars.getHour() == -1 && vars.getMinute() == 0) && (vars.getOldHour() != -1 || vars.getOldMinute() != 0)){
vars.resetVariables();
}
//if (vars.watchers["closestInteractibleAddress"].Current != vars.watchers["closestInteractibleAddress"].Old)
Expand Down Expand Up @@ -1145,6 +1145,7 @@ start {
reset {
//Resets timer upon starting new game/loading a game from the starting file
if (settings["Reset Settings"] && vars.getOldHour() != -1 && vars.checkTime("Reset On New Game", -1, 0)){
vars.resetVariables();
print("Reset on New Game");
return true;
}
Expand Down

0 comments on commit 3392320

Please sign in to comment.