From 4686d10f415db72958895115c1d052642fe62085 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 20 Oct 2022 17:05:44 +0200 Subject: [PATCH] - zero the velocity of crunched sprites. Since their size is zeroed, they are no longer subject to collision detection and may slide out of the level otherwise. --- src/playsim/p_mobj.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/playsim/p_mobj.cpp b/src/playsim/p_mobj.cpp index 46d6c26676..019f945042 100644 --- a/src/playsim/p_mobj.cpp +++ b/src/playsim/p_mobj.cpp @@ -1186,6 +1186,7 @@ bool AActor::Grind(bool items) flags3 |= MF3_DONTGIB; Height = 0; radius = 0; + Vel.Zero(); return false; } @@ -1212,6 +1213,7 @@ bool AActor::Grind(bool items) flags3 |= MF3_DONTGIB; Height = 0; radius = 0; + Vel.Zero(); SetState (state); if (isgeneric) // Not a custom crush state, so colorize it appropriately. { @@ -1248,6 +1250,7 @@ bool AActor::Grind(bool items) flags3 |= MF3_DONTGIB; Height = 0; radius = 0; + Vel.Zero(); return false; }