Fixes datum/turbolift-based elevators (#22697)

Still not sure how this became a bug, but this test change fixed it for
local server in Lemurian Sea sectors.
This commit is contained in:
Batrachophreno
2026-06-14 22:24:15 +00:00
committed by GitHub
parent 1c908d0d81
commit c2115714e7
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -66,7 +66,7 @@
doors_closing = 0 // The doors weren't open, so they are done closing
var/area/turbolift/origin = locate(current_floor.area_ref) in get_sorted_areas()
var/area/turbolift/origin = locate(current_floor.area_ref)
if(target_floor == current_floor)
playsound(control_panel_interior.loc, origin.arrival_sound, 50, 1)
@@ -86,7 +86,7 @@
else
next_floor = floors[current_floor_index - 1]
var/area/turbolift/destination = locate(next_floor.area_ref) in get_sorted_areas()
var/area/turbolift/destination = locate(next_floor.area_ref)
if(!istype(origin) || !istype(destination) || (origin == destination))
return 0