Properly fix #177.
Previous fix (#186) threw NPE upon failing a song. Thanks to #155. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
parent
3b847d088d
commit
79bfa1c255
|
@ -230,6 +230,7 @@ public class Opsu extends StateBasedGame {
|
|||
} else {
|
||||
if (id == STATE_GAME) {
|
||||
MusicController.pause();
|
||||
MusicController.setPitch(1.0f);
|
||||
MusicController.resume();
|
||||
} else
|
||||
songMenu.resetTrackOnLoad();
|
||||
|
|
|
@ -1384,9 +1384,6 @@ public class Game extends BasicGameState {
|
|||
// replays
|
||||
if (isReplay)
|
||||
GameMod.loadModState(previousMods);
|
||||
|
||||
// reset the playback speed
|
||||
MusicController.setPitch(1f);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user