From a9a6270f0933048a71c80d1e9915bd42f006ef81 Mon Sep 17 00:00:00 2001
From: SSNTails <github@spaddlewit.com>
Date: Wed, 29 May 2024 19:43:08 -0400
Subject: [PATCH] Oh gosh, this was humorous...

---
 src/p_mobj.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/p_mobj.c b/src/p_mobj.c
index c02ed91dc7..b161f6cbf0 100644
--- a/src/p_mobj.c
+++ b/src/p_mobj.c
@@ -3145,8 +3145,9 @@ void P_MobjCheckWater(mobj_t *mobj)
 				sector_t *controlSector = sectors + rover->secnum;
 				if (controlSector->special & 16) // Is there a cleaner way to check this? Don't like magic numbers...
 					P_LinedefExecute(controlSector->triggertag, mobj, controlSector);
+
+				P_KillMobj(mobj, NULL, NULL, 0);
 			}
-			P_KillMobj(mobj, NULL, NULL, 0);
 		}
 
 		if (mobj->eflags & (MFE_TOUCHWATER|MFE_UNDERWATER))
-- 
GitLab