Skip to content

Commit

Permalink
Store scenes references locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Reco1I committed Nov 22, 2024
1 parent 48c7ddf commit 056813a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ru/nsu/ccfit/zuev/osu/game/GameScene.java
Original file line number Diff line number Diff line change
Expand Up @@ -2263,8 +2263,12 @@ public void gameover() {

float initialFrequency = songService.getFrequency();

// Wind down animation for failing based on osu!stable behavior.
// Locally saving the scenes references to avoid unexpected behavior when the scene is changed.
ExtendedScene scene = this.scene;
ExtendedScene mgScene = this.mgScene;
ExtendedScene bgScene = this.bgScene;

// Wind down animation for failing based on osu!stable behavior.
engine.registerUpdateHandler(new IUpdateHandler() {
private float elapsedTime;

Expand Down

0 comments on commit 056813a

Please sign in to comment.