Harddel Fix Pack #42 + Better Live Reftracking Support (#63877)

* Hard Del Fixes, Ref Tracking Changes
This commit is contained in:
LemonInTheDark
2022-01-12 22:46:13 +01:00
committed by GitHub
parent f3f7720d7e
commit f8aad14ae8
109 changed files with 865 additions and 733 deletions
+4 -6
View File
@@ -867,10 +867,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
observetarget = null
client?.perspective = initial(client.perspective)
sight = initial(sight)
UnregisterSignal(target, COMSIG_MOVABLE_Z_CHANGED)
if(target.observers)
target.observers -= src
UNSETEMPTY(target.observers)
if(target)
UnregisterSignal(target, COMSIG_MOVABLE_Z_CHANGED)
LAZYREMOVE(target.observers, src)
/mob/dead/observer/verb/observe()
set name = "Observe"
@@ -913,8 +912,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
RegisterSignal(mob_eye, COMSIG_MOVABLE_Z_CHANGED, .proc/on_observing_z_changed)
if(mob_eye.hud_used)
client.screen = list()
LAZYINITLIST(mob_eye.observers)
mob_eye.observers |= src
LAZYOR(mob_eye.observers, src)
mob_eye.hud_used.show_hud(mob_eye.hud_used.hud_version, src)
observetarget = mob_eye