diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-20 08:44:01 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-20 08:44:01 -0400 |
commit | 9458529e94ec3135a5a6fa0fbaf7e0ce1459168b (patch) | |
tree | 88561e15364a4d3fa95c964a66c5206955543738 /src | |
parent | 915226cba15a78767647ae37868881a47dd47c10 (diff) | |
download | ether-9458529e94ec3135a5a6fa0fbaf7e0ce1459168b.tar.gz ether-9458529e94ec3135a5a6fa0fbaf7e0ce1459168b.tar.bz2 ether-9458529e94ec3135a5a6fa0fbaf7e0ce1459168b.zip |
fixed bug that restarts game & doubles music if you press esc while fading in
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index caa465c..a3aa7be 100644 --- a/src/game.cpp +++ b/src/game.cpp | |||
@@ -749,7 +749,9 @@ void Game::updatePlaying(size_t frameTime) { | |||
749 | { | 749 | { |
750 | case SDLK_ESCAPE: | 750 | case SDLK_ESCAPE: |
751 | { | 751 | { |
752 | if (losing != LoseState::None) | 752 | if (losing == LoseState::NewGame) { |
753 | // Do nothing. | ||
754 | } else if (losing != LoseState::None) | ||
753 | { | 755 | { |
754 | if (quitting) { | 756 | if (quitting) { |
755 | quit = true; | 757 | quit = true; |