Removed static fields in Game state.
Mostly merged from #8 (72e8a7e). Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -712,7 +712,7 @@ public class SongMenu extends BasicGameState {
|
||||
Display.setTitle(String.format("%s - %s", game.getTitle(), osu.toString()));
|
||||
OsuParser.parseHitObjects(osu);
|
||||
HitSound.setSampleSet(osu.sampleSet);
|
||||
Game.setRestart(Game.RESTART_NEW);
|
||||
((Game) game.getState(Opsu.STATE_GAME)).setRestart(Game.RESTART_NEW);
|
||||
game.enterState(Opsu.STATE_GAME, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user