Fixed double songs playing

This commit is contained in:
jancoow
2015-06-26 21:51:58 +02:00
parent f229153346
commit be274685b5
4 changed files with 13 additions and 6 deletions
+3
View File
@@ -48,6 +48,9 @@ public class GameStateManager {
}
public void setState(State st) {
if (st.ordinal() > 0 && !(currentState instanceof TitleState))
currentState.stopAudio();
currentState = gamestates.get(st.ordinal());
init();
}