[FIX] Guncabinet overlay fix (#27107)

* Draw guns before the doors

* Added a comment.

---------

Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
This commit is contained in:
Chap
2024-10-15 14:30:33 +02:00
committed by GitHub
parent 429bebc613
commit 4cef80facb
@@ -23,7 +23,7 @@
return TRUE
/obj/structure/closet/secure_closet/guncabinet/update_overlays()
. = ..()
. = list()
if(!opened)
var/lasers = 0
var/ballistics = 0
@@ -48,6 +48,7 @@
. += gun
if(broken)
. += "off"
. += ..() // Parent call at the end instead of the beginning because we need the gun overlays to be drawn first, then the door.
/obj/structure/closet/secure_closet/guncabinet/cc
req_access = list(ACCESS_CENT_SPECOPS_COMMANDER)