Shuttle refactor (#2171)

Rewrites the area movement code used by shuttles & elevators in an effort to make it faster, more extensible, and generally easier to read. Also fixes some bugs relating to lighting & moving areas, such as lighting overlays suddenly being teleported into space for absolutely no reason.

Fixes #2161.
Fixes #2166.
This commit is contained in:
Lohikar
2017-05-05 10:16:53 +03:00
committed by skull132
parent a14654b197
commit 52a4f3a4e3
14 changed files with 204 additions and 292 deletions
-3
View File
@@ -101,9 +101,6 @@ var/global/list/turbolifts = list()
origin.move_contents_to(destination)
if((locate(/obj/machinery/power) in destination) || (locate(/obj/structure/cable) in destination))
makepowernets()
current_floor = next_floor
control_panel_interior.visible_message("The elevator [moving_upwards ? "rises" : "descends"] smoothly.")