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 {
|
} else {
|
||||||
if (id == STATE_GAME) {
|
if (id == STATE_GAME) {
|
||||||
MusicController.pause();
|
MusicController.pause();
|
||||||
|
MusicController.setPitch(1.0f);
|
||||||
MusicController.resume();
|
MusicController.resume();
|
||||||
} else
|
} else
|
||||||
songMenu.resetTrackOnLoad();
|
songMenu.resetTrackOnLoad();
|
||||||
|
|
|
@ -1384,9 +1384,6 @@ public class Game extends BasicGameState {
|
||||||
// replays
|
// replays
|
||||||
if (isReplay)
|
if (isReplay)
|
||||||
GameMod.loadModState(previousMods);
|
GameMod.loadModState(previousMods);
|
||||||
|
|
||||||
// reset the playback speed
|
|
||||||
MusicController.setPitch(1f);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user