From cf75945df7959a2c02fd8c429fae08706043bf3e Mon Sep 17 00:00:00 2001 From: HMBGERDO <61080616+HMBGERDO@users.noreply.github.com> Date: Fri, 30 Jun 2023 05:00:50 +0200 Subject: [PATCH] Wenting ghost or getting mob deleted with throw mode on now making mouse pointer default (#21423) * throw mode disables on ghostise or destroy the mob * Update code/modules/mob/living/carbon/carbon.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> --------- Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> --- code/modules/mob/living/carbon/carbon.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index 347b82a816c..38f6bd5330c 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -15,6 +15,13 @@ QDEL_LIST_CONTENTS(stomach_contents) QDEL_LIST_CONTENTS(processing_patches) GLOB.carbon_list -= src + if(in_throw_mode) + toggle_throw_mode() + return ..() + +/mob/living/carbon/ghostize(can_reenter_corpse) + if(in_throw_mode) + toggle_throw_mode() return ..() /mob/living/carbon/handle_atom_del(atom/A)