Possible fix for audio stopping
This commit is contained in:
@@ -47,7 +47,7 @@ public class GameStateManager {
|
||||
}
|
||||
|
||||
public void setState(State st) {
|
||||
if (st.ordinal() > 0 && !(currentState instanceof TitleState))
|
||||
if (st.ordinal() > 0 && ( !(currentState instanceof TitleState) || !(currentState instanceof EndState) ))
|
||||
currentState.stopAudio();
|
||||
|
||||
currentState = gamestates.get(st.ordinal());
|
||||
|
||||
Reference in New Issue
Block a user