mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 12:02:31 +01:00
Fixes weapon racks not displaying stored guns roundstart (#22374)
## About PR Instead of directly poking the `overlays` list, uses overlay helper procs to queue the icons properly. Can't really fathom why this became an issue in the first place I didn't observe any layer changes upon testing, it works as it should <img width="401" height="200" alt="Screenshot_45" src="https://github.com/user-attachments/assets/15ecbf15-4e87-4f4e-b90a-e838db453677" />
This commit is contained in:
@@ -147,7 +147,7 @@
|
||||
#define INTER_OFFSET_RIFLE_SLOT 7
|
||||
/obj/structure/weapons_rack/update_icon()
|
||||
. = ..()
|
||||
visual_holder.overlays.Cut()
|
||||
visual_holder.ClearOverlays()
|
||||
ClearOverlays()
|
||||
|
||||
for(var/i in 1 to length(src.contents))
|
||||
@@ -162,7 +162,7 @@
|
||||
var/mutable_appearance/weapon_appearance = mutable_appearance(G.icon, G.icon_state, plane = src.plane, layer = G.layer)
|
||||
weapon_appearance.transform = transform_matrix
|
||||
|
||||
visual_holder.overlays += weapon_appearance
|
||||
visual_holder.AddOverlays(weapon_appearance)
|
||||
|
||||
if(locked)
|
||||
AddOverlays(image(src.icon, "locked_overlay", layer = ABOVE_OBJ_LAYER))
|
||||
|
||||
Reference in New Issue
Block a user