Эх сурвалжийг харах

Possible fix for audio stopping

Kenneth van Ewijk 10 жил өмнө
parent
commit
675daadd13

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