From 7f652fb51a1dd1875a24fd03de9f92ce214dd9d1 Mon Sep 17 00:00:00 2001 From: Loobinex Date: Wed, 15 Jan 2025 01:55:42 +0100 Subject: [PATCH] Fixed unlocking door from script --- src/lvl_script_commands.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lvl_script_commands.c b/src/lvl_script_commands.c index fd6a5f635f..bf06333fd8 100644 --- a/src/lvl_script_commands.c +++ b/src/lvl_script_commands.c @@ -2759,12 +2759,12 @@ static void set_door_process(struct ScriptContext* context) { switch (context->value->shorts[0]) { + case 0: + unlock_door(doortng); + break; case 1: lock_door(doortng); break; - case 2: - unlock_door(doortng); - break; } } }