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:
Jeffrey Han 2016-10-13 17:51:51 -04:00
parent 3b847d088d
commit 79bfa1c255
2 changed files with 1 additions and 3 deletions

View File

@ -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();

View File

@ -1384,9 +1384,6 @@ public class Game extends BasicGameState {
// replays
if (isReplay)
GameMod.loadModState(previousMods);
// reset the playback speed
MusicController.setPitch(1f);
}
/**