Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit dbe6d39

Browse files
authored
eating a fish you're showing off will stop showing it off (#22900)
* Update fish.dm * fix this other bug too
1 parent d4a52bc commit dbe6d39

File tree

1 file changed

+5
-1
lines changed
  • yogstation/code/game/objects/items/fishing

1 file changed

+5
-1
lines changed

yogstation/code/game/objects/items/fishing/fish.dm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,14 @@
4848
M.visible_message("[M] shows off [src]. It's [length] inch[length > 1 ? "es" : ""] long and weighs [weight] ounce[weight > 1 ? "s" : ""]!", \
4949
span_notice("You show off [src]. It's [length] inch[length > 1 ? "es" : ""] long and weighs [weight] ounce[weight > 1 ? "s" : ""]!"))
5050
RegisterSignal(M,COMSIG_ATOM_DIR_CHANGE, PROC_REF(stop_overlay),TRUE)
51+
RegisterSignal(src, COMSIG_PREQDELETED, PROC_REF(stop_overlay))
52+
RegisterSignal(src, COMSIG_MOVABLE_PRE_MOVE, PROC_REF(stop_overlay))
5153

5254
/obj/item/reagent_containers/food/snacks/fish/proc/stop_overlay()
5355
if(showoffer && showoff_overlay)
54-
UnregisterSignal(showoffer,COMSIG_ATOM_DIR_CHANGE)
56+
UnregisterSignal(showoffer, COMSIG_ATOM_DIR_CHANGE)
57+
UnregisterSignal(src, COMSIG_PREQDELETED)
58+
UnregisterSignal(src, COMSIG_MOVABLE_PRE_MOVE)
5559
showoffer.cut_overlay(showoff_overlay)
5660
showoffer = null
5761
showoff_overlay = null

0 commit comments

Comments
 (0)