From c2115714e7e7ef46e77f48deb07b7963b17420f0 Mon Sep 17 00:00:00 2001 From: Batrachophreno Date: Sun, 14 Jun 2026 18:24:15 -0400 Subject: [PATCH] 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. --- code/modules/turbolift/turbolift.dm | 4 ++-- html/changelogs/Bat-ElevatorFix.yml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 html/changelogs/Bat-ElevatorFix.yml diff --git a/code/modules/turbolift/turbolift.dm b/code/modules/turbolift/turbolift.dm index d56d4a4f9d9..aa70cdd7310 100644 --- a/code/modules/turbolift/turbolift.dm +++ b/code/modules/turbolift/turbolift.dm @@ -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 diff --git a/html/changelogs/Bat-ElevatorFix.yml b/html/changelogs/Bat-ElevatorFix.yml new file mode 100644 index 00000000000..cd81c928b84 --- /dev/null +++ b/html/changelogs/Bat-ElevatorFix.yml @@ -0,0 +1,4 @@ +author: Batrachophrenoboocosmomachia +delete-after: True +changes: + - bugfix: "Fixes case where datum/turbolift-type elevators fail to move because they cannot resolve their origin floor."