Skip to content

Commit 7a3da53

Browse files
committed
Bug fixed: music was stopped changing from scene when a change to the
loading screen was needed.
1 parent 9846f87 commit 7a3da53

File tree

1 file changed

+4
-1
lines changed
  • blade-engine/src/com/bladecoder/engine/model

1 file changed

+4
-1
lines changed

blade-engine/src/com/bladecoder/engine/model/World.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,10 @@ public void pause() {
583583
paused = true;
584584

585585
if (currentScene != null) {
586-
musicEngine.pauseMusic();
586+
587+
// do not pause the music when going to the loading screen.
588+
if (assetState == AssetState.LOADED)
589+
musicEngine.pauseMusic();
587590

588591
// Pause all sounds
589592
for (BaseActor a : currentScene.getActors().values()) {

0 commit comments

Comments
 (0)