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."