Skip to content

Commit

Permalink
Signal shuffling
Browse files Browse the repository at this point in the history
  • Loading branch information
SabreML committed Jan 4, 2024
1 parent c70b05e commit 27c47ad
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions code/modules/mob/dead/observer/observer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@
var/mob/living/carbon/human/human_target = target

client.eye = human_target
observe_target_mob = human_target
RegisterSignal(observe_target_mob, COMSIG_PARENT_QDELETING, PROC_REF(clean_observe_target))
RegisterSignal(src, COMSIG_MOVABLE_MOVED, PROC_REF(observer_move_react))

if(!human_target.hud_used)
return
Expand Down Expand Up @@ -290,19 +293,14 @@

break

observe_target_mob = human_target
RegisterSignal(observe_target_mob, COMSIG_PARENT_QDELETING, PROC_REF(clean_observe_target))
RegisterSignal(observe_target_mob, COMSIG_MOB_GHOSTIZE, PROC_REF(observe_target_ghosting))
RegisterSignal(observe_target_mob, COMSIG_MOB_NEW_MIND, PROC_REF(observe_target_new_mind))
RegisterSignal(observe_target_mob, COMSIG_MOB_LOGIN, PROC_REF(observe_target_login))

RegisterSignal(src, COMSIG_MOVABLE_MOVED, PROC_REF(observer_move_react))

if(human_target.client)
observe_target_client = human_target.client
RegisterSignal(observe_target_client, COMSIG_CLIENT_SCREEN_ADD, PROC_REF(observe_target_screen_add))
RegisterSignal(observe_target_client, COMSIG_CLIENT_SCREEN_REMOVE, PROC_REF(observe_target_screen_remove))
return

/mob/dead/observer/reset_perspective(atom/A)
if(observe_target_mob)
Expand Down

0 comments on commit 27c47ad

Please sign in to comment.