mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
fix room music playing when in another scene
This commit is contained in:
+5
-1
@@ -718,7 +718,11 @@ var Room = {
|
||||
Room._fireTimer = Engine.setTimeout(Room.coolFire, Room._FIRE_COOL_DELAY);
|
||||
Room.updateButton();
|
||||
Room.setTitle();
|
||||
Room.setMusic();
|
||||
|
||||
// only update music if in the room
|
||||
if (Engine.activeModule == Room) {
|
||||
Room.setMusic();
|
||||
}
|
||||
},
|
||||
|
||||
coolFire: function () {
|
||||
|
||||
Reference in New Issue
Block a user