mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-22 13:27:36 +01:00
9983fca311
Our SSOverlays system is outdated, and is likely the cause of many of the issues seen in #18895. It has also been linked to a massive server performance decrease. This brings an updated system from Baystation, hopefully with speed increases. Should be testmerged, ideally with #18895. --------- Co-authored-by: Cody Brittain <cbrittain10@live.com>
12 lines
385 B
Plaintext
12 lines
385 B
Plaintext
/obj/effect/decal/warning_stripes
|
|
icon = 'icons/effects/warning_stripes.dmi'
|
|
layer = DECAL_LAYER
|
|
|
|
/obj/effect/decal/warning_stripes/Initialize()
|
|
. = ..()
|
|
var/turf/T = get_turf(src)
|
|
var/image/I = image(icon, icon_state = icon_state, dir = dir)
|
|
I.color = color
|
|
T.AddOverlays(I, ATOM_ICON_CACHE_PROTECTED) // Register it as protected so we don't lose it on icon update.
|
|
qdel(src)
|