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
+1 -1
View File
@@ -32,7 +32,7 @@ var/datum/controller/subsystem/explosives/SSexplosives
if (!(work_queue.len))
ticks_without_work++
if (powernet_update_pending && ticks_without_work > 5)
makepowernets()
SSmachinery.powernet_update_queued = TRUE
powernet_update_pending = 0
// All explosions handled, powernet rebuilt.
+5
View File
@@ -23,6 +23,7 @@
var/list/breaker_boxes = list()
var/rcon_update_queued = FALSE
var/powernet_update_queued = FALSE
var/list/slept_in_process = list()
@@ -69,6 +70,10 @@
if (rcon_update_queued)
build_rcon_lists()
if (powernet_update_queued)
makepowernets()
powernet_update_queued = FALSE
var/list/curr_machinery = src.processing_machinery
var/list/curr_powersinks = src.processing_powersinks