mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 04:48:18 +01:00
Update SSOverlays (ported from Baystation) (#19051)
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>
This commit is contained in:
@@ -177,7 +177,7 @@
|
||||
C.targeting = FALSE
|
||||
targeting = O
|
||||
O.targeted_overlay = icon('icons/obj/overmap/overmap_effects.dmi', "lock")
|
||||
O.add_overlay(O.targeted_overlay)
|
||||
O.AddOverlays(O.targeted_overlay)
|
||||
if(designation && class && !obfuscated)
|
||||
if(!O.maptext)
|
||||
O.maptext = SMALL_FONTS(6, "[class] [designation]")
|
||||
@@ -207,6 +207,6 @@
|
||||
if(C)
|
||||
playsound(C, 'sound/items/rfd_interrupt.ogg', 70)
|
||||
if(O)
|
||||
O.cut_overlay(O.targeted_overlay)
|
||||
O.CutOverlays(O.targeted_overlay)
|
||||
O.maptext = null
|
||||
targeting = null
|
||||
|
||||
Reference in New Issue
Block a user