Skip to content

Commit

Permalink
Allow to show the menu before game over animation ends
Browse files Browse the repository at this point in the history
  • Loading branch information
Reco1I committed Nov 21, 2024
1 parent 7e18cf8 commit c4cc159
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ru/nsu/ccfit/zuev/osu/game/GameScene.java
Original file line number Diff line number Diff line change
Expand Up @@ -2141,7 +2141,7 @@ public boolean onSceneTouchEvent(final Scene pScene, final TouchEvent event) {

public void pause() {

if (paused || isGameOver) {
if (paused) {
return;
}

Expand All @@ -2164,6 +2164,12 @@ public void pause() {
return;
}

if (isGameOver) {
// Finishing the game over animation now.
GlobalManager.getInstance().getSongService().setFrequencyForcefully(101);
return;
}

if (video != null && videoStarted) {
video.pause();
}
Expand Down

0 comments on commit c4cc159

Please sign in to comment.