Skip to content

Commit

Permalink
Fix #1: Game over doesn't stop lifebar drain
Browse files Browse the repository at this point in the history
  • Loading branch information
v-atamanenko committed Apr 10, 2022
1 parent 75aeca2 commit 82b6906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Modes/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void Player::Update() {
mRuleset.OnGameOver();
}

if (failed && !mNoFail) {
if (failed && !mNoFail && mPlayState != PLAYSTATE_GAMEOVER) {
mPlayState = PLAYSTATE_FAILED;
mRuleset.OnFailed();
}
Expand Down

0 comments on commit 82b6906

Please sign in to comment.