mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-18 06:01:56 +00:00
Fixes z-shadow bug
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
sync_icon(L)
|
sync_icon(L)
|
||||||
|
|
||||||
/mob/zshadow/Destroy()
|
/mob/zshadow/Destroy()
|
||||||
|
owner.shadow = null
|
||||||
owner = null
|
owner = null
|
||||||
..() //But we don't return because the hint is wrong
|
..() //But we don't return because the hint is wrong
|
||||||
return QDEL_HINT_QUEUE
|
return QDEL_HINT_QUEUE
|
||||||
|
|||||||
@@ -97,6 +97,8 @@
|
|||||||
if(istype(AM, /mob/living))
|
if(istype(AM, /mob/living))
|
||||||
var/mob/living/M = AM
|
var/mob/living/M = AM
|
||||||
M.gib()
|
M.gib()
|
||||||
|
else if(istype(AM, /mob/zshadow))
|
||||||
|
AM.Destroy() //prevent deleting shadow without deleting shadow's shadows
|
||||||
else if(AM.simulated && !(istype(AM, /mob/observer)))
|
else if(AM.simulated && !(istype(AM, /mob/observer)))
|
||||||
qdel(AM)
|
qdel(AM)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user