From ff53eed1ee976209bcbfbbab2a5aa2f6a4cdc10f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Tue, 8 Dec 2020 20:44:03 +0100 Subject: [PATCH] Don't allow to open locked, synchronized doors --- CHANGELOG.md | 1 + main.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ed28c0..c616f9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### Bugfixes - In cloned scenes Locked Door Alerts will now only highlight the door in the correct scene - When adding a door to a synchronization group it will now assume the correct state if it's being synchronized with it's twin door on a cloned map +- Fixed a bug that allowed synchonized doors to be opened dispite them being locked ## v1.0.1 - When adding a door to a synchronization group adjust it's state to bring it in sync with the other doors diff --git a/main.js b/main.js index 1f8f04e..9df7c00 100644 --- a/main.js +++ b/main.js @@ -313,7 +313,7 @@ function synchronizedDoorsLeftClick() { return false // If the door is locked there is nothing to synchronize - if (this.state === states.LOCKED) + if (state === states.LOCKED) return false // Calculate new door state