Explorar o código

Possible fix for audio stopping

Kenneth van Ewijk %!s(int64=10) %!d(string=hai) anos
pai
achega
675daadd13
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      control/GameStateManager.java

+ 1 - 1
control/GameStateManager.java

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