mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 07:20:09 +01:00
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:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user