[MIRROR] fixes small zparallax bug [MDB IGNORE] (#13880)

* fixes small zparallax bug (#67244)

fixes an issue where if you attempted to regain control of your initial body after possessing another body it caused a stack trace due to MOB_LOGIN signal not being unregistered

(This was tsu's fault, introduced in a9d8be4d16)

* fixes small zparallax bug

Co-authored-by: magatsuchi <88991542+magatsuchi@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-05-25 16:24:27 +01:00
committed by GitHub
co-authored by magatsuchi
parent 7ba8e70537
commit b4e92540d0
+1 -1
View File
@@ -33,7 +33,7 @@
if(!client_mob)
return
UnregisterSignal(client_mob, list(COMSIG_MOB_LOGOUT, COMSIG_MOVABLE_Z_CHANGED))
UnregisterSignal(client_mob, list(COMSIG_MOB_LOGIN, COMSIG_MOB_LOGOUT, COMSIG_MOVABLE_Z_CHANGED))
/datum/component/zparallax/proc/refresh_client()
tracked = client_mob.client