From 44a7552de4251d0b9b3ca5b38a3705779611571e Mon Sep 17 00:00:00 2001 From: jorsi Date: Wed, 3 Jun 2020 18:14:19 -0400 Subject: [PATCH] fix room music playing when in another scene --- script/room.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/room.js b/script/room.js index 1c10920..5567ce7 100644 --- a/script/room.js +++ b/script/room.js @@ -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 () {