mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Fix crash in turbolifts built on any z-level other than "1"
Port of https://github.com/Baystation12/Baystation12/pull/16941 * Turbolift auto-mapping code assumed that all lift's first floor would be on z=1. Fixed so it picks the first floor instead of the zth floor from the floor list.
This commit is contained in:
@@ -221,7 +221,7 @@
|
||||
var/turf/T = locate(int_panel_x, int_panel_y, uz)
|
||||
lift.control_panel_interior = new(T, lift)
|
||||
lift.control_panel_interior.set_dir(udir)
|
||||
lift.current_floor = lift.floors[uz]
|
||||
lift.current_floor = lift.floors[1]
|
||||
|
||||
lift.open_doors()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user