Openturf fixes, dynamically lit holodeck, and quick-pickup tweaks (#2943)

changes:

The station's holodeck is now dynamically lit.
Improved quick-pickup's tick checking & converted to assoc lists instead of if (thing in list).
Fixed an edge case where openspace overlays would not properly cleanup on forceMove to a non-turf.
Fixes #2941.
This commit is contained in:
Lohikar
2017-07-06 23:34:55 +03:00
committed by skull132
parent 12425ef9a4
commit 2185094d35
3 changed files with 20 additions and 15 deletions
+4 -1
View File
@@ -36,7 +36,10 @@
. = ..(dest)
if (bound_overlay)
// The overlay will handle cleaning itself up on non-openspace turfs.
bound_overlay.forceMove(get_step(src, UP))
if (isturf(dest))
bound_overlay.forceMove(get_step(src, UP))
else // Not a turf, so we need to destroy immediately instead of waiting for the destruction timer to proc.
qdel(bound_overlay)
/atom/movable/update_above()
if (!bound_overlay)