Queued icon update tweaks (#2787)

changes:

Queued icon updates now update the atom's associated openspace overlay or openturf.
update_oo() renamed to update_above(), and moved up to /atom. Only meaningful on /turf (updates above openturf if present) and /atom/movable (updates associated OO if present).
Demoted SSfalling to a regular subsystem (1ds tickrate).
Increased SSlighting's tickrate from 2 ds to 1 ds.
This commit is contained in:
Lohikar
2017-06-22 13:23:30 +03:00
committed by skull132
parent c8fde7832f
commit 05cceb7a1a
9 changed files with 17 additions and 11 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
/datum/controller/subsystem/falling
name = "Falling"
flags = SS_NO_INIT | SS_TICKER | SS_KEEP_TIMING
flags = SS_NO_INIT
wait = 1
var/list/falling = list()
+3 -2
View File
@@ -32,6 +32,7 @@
A.icon_update_queued = FALSE
A.update_icon()
A.update_above()
A.last_icon_update = world.time
if (no_mc_tick)
@@ -40,8 +41,8 @@
return
/atom
var/last_icon_update
var/icon_update_queued
var/tmp/last_icon_update
var/tmp/icon_update_queued
var/icon_update_delay
/atom/proc/update_icon()
+1 -1
View File
@@ -182,7 +182,7 @@
OO.layer = 1e6
if (OO.bound_overlay) // If we have a bound overlay, queue it too.
OO.update_oo()
OO.update_above()
if (no_mc_tick)
CHECK_TICK