fix room music playing when in another scene

This commit is contained in:
jorsi
2020-06-03 18:14:19 -04:00
parent 3b43a2754a
commit 44a7552de4
+5 -1
View File
@@ -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 () {