소스 검색

Possible fix for audio stopping

Kenneth van Ewijk 10 년 전
부모
커밋
675daadd13
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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());