mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 08:11: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._fireTimer = Engine.setTimeout(Room.coolFire, Room._FIRE_COOL_DELAY);
|
||||||
Room.updateButton();
|
Room.updateButton();
|
||||||
Room.setTitle();
|
Room.setTitle();
|
||||||
Room.setMusic();
|
|
||||||
|
// only update music if in the room
|
||||||
|
if (Engine.activeModule == Room) {
|
||||||
|
Room.setMusic();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
coolFire: function () {
|
coolFire: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user