Skip to content

Commit

Permalink
Fix for queen eye runtime. (#3549)
Browse files Browse the repository at this point in the history
# About the pull request

Followup to #3477.

# Explain why it's good for the game


![image](https://github.com/cmss13-devs/cmss13/assets/4447185/18230244-ce64-408d-9da0-43413a758134)


# Changelog
:cl:
fix: Queen Eye no longer repeatedly throws runtime errors.
/:cl:
  • Loading branch information
Segrain authored Jun 7, 2023
1 parent 3ccf795 commit c36f2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/xenomorph/XenoOverwatch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@

SEND_SIGNAL(src, COMSIG_XENO_STOP_OVERWATCH, oldXeno)
UnregisterSignal(src, COMSIG_MOB_MOVE_OR_LOOK)
UnregisterSignal(oldXeno, COMSIG_PARENT_QDELETING)

if(oldXeno)
to_chat(src, SPAN_XENOWARNING("You stop watching [oldXeno]."))
UnregisterSignal(oldXeno, COMSIG_PARENT_QDELETING)
if(!QDELETED(oldXeno))
oldXeno.hud_set_queen_overwatch()
else
Expand Down

0 comments on commit c36f2e8

Please sign in to comment.