Skip to content

Commit

Permalink
Fixes minor runtime in CAS Guidance system
Browse files Browse the repository at this point in the history
  • Loading branch information
fira committed Oct 17, 2023
1 parent 2d5834c commit 28cf003
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/game/cas_manager/datums/cas_fire_envelope.dm
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
apply_upgrade(user)
if(!(user in guidance.users))
guidance.users += user
RegisterSignal(usr, COMSIG_MOB_RESISTED, PROC_REF(exit_cam_resist))
RegisterSignal(user, COMSIG_MOB_RESISTED, PROC_REF(exit_cam_resist))


/datum/cas_fire_envelope/proc/apply_upgrade(user)
Expand Down Expand Up @@ -220,6 +220,7 @@
M.reset_view()
remove_upgrades(user)
guidance.users -= user
UnregisterSignal(user, COMSIG_MOB_RESISTED)

/datum/cas_fire_envelope/proc/exit_cam_resist(mob/user)
SIGNAL_HANDLER
Expand Down

0 comments on commit 28cf003

Please sign in to comment.