Skip to content

Commit

Permalink
Fix crash when climbing stairs
Browse files Browse the repository at this point in the history
  • Loading branch information
ekolis committed Mar 13, 2021
1 parent 07a7917 commit d27e61f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FoundMagic/Mapping/Floor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,16 @@ public double ProcessTime(double timeAllotted, bool waitForHero)
if (Hero.Instance.IsClimbing)
{
Hero.Instance.IsClimbing = false;
break;
goto done; // gotos are evil, yeah, but I need to break out of two loops at once! so there! 😛
}
creature.Timer += creature.Act();
if (creature is Hero)
heroHasActed = true;
}
}

done:

// deal with endgame stuff
if (World.Instance.IsEndgame)
{
Expand Down

0 comments on commit d27e61f

Please sign in to comment.