Skip to content

Commit

Permalink
Fixes multi-tile doors (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorDinamit authored Jan 5, 2024
1 parent 84c5640 commit 9164c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/game/machinery/doors/door.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@
/obj/machinery/door/Initialize()
set_extension(src, /datum/extension/penetration, /datum/extension/penetration/proc_call, .proc/CheckPenetration)
. = ..()
if(autoset_access)
#ifdef UNIT_TEST
if(autoset_access)
if(length(req_access))
crash_with("A door with mapped access restrictions was set to autoinitialize access.")
#endif
return INITIALIZE_HINT_LATELOAD
return INITIALIZE_HINT_LATELOAD

/obj/machinery/door/LateInitialize()
..()
Expand Down

0 comments on commit 9164c33

Please sign in to comment.