Skip to content

Commit 932039f

Browse files
committed
Really ensure no locked open, ref #381
1 parent 08170f5 commit 932039f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts_src/generic/ziwoddor.ssl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,9 @@ procedure map_enter_p_proc begin
492492
// Some doors, like Rebecca's basement door, have dynamic LOCKED_STATUS. Active when she's alive, inactive when dead.
493493
// Same for Eldrige, etc. They re-lock on re-entering the map.
494494
if (LOCKED_STATUS == STATE_ACTIVE) then begin
495+
if obj_is_open(self_obj) then begin
496+
obj_close(self_obj);
497+
end
495498
obj_lock(self_obj);
496499
end else begin
497500
obj_unlock(self_obj);

0 commit comments

Comments
 (0)