mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-31 00:49:06 +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:
co-authored by
Cody Brittain
parent
405a05b819
commit
9983fca311
@@ -263,7 +263,7 @@
|
||||
/obj/item/paper_bundle/update_icon()
|
||||
var/obj/item/paper/P = pages[1]
|
||||
icon_state = P.icon_state
|
||||
copy_overlays(P, TRUE)
|
||||
CopyOverlays(P, TRUE)
|
||||
underlays = 0
|
||||
var/i = 0
|
||||
var/photo
|
||||
@@ -279,11 +279,11 @@
|
||||
else if(istype(O, /obj/item/photo))
|
||||
var/obj/item/photo/Ph = O
|
||||
photo = 1
|
||||
add_overlay(Ph.tiny)
|
||||
AddOverlays(Ph.tiny)
|
||||
if(i>1)
|
||||
desc = "[i] papers clipped to each other."
|
||||
else
|
||||
desc = "A single sheet of paper."
|
||||
if(photo)
|
||||
desc += "\nThere is a photo attached to it."
|
||||
add_overlay("clip")
|
||||
AddOverlays("clip")
|
||||
|
||||
Reference in New Issue
Block a user