From 5ca1bb39799865523ade57ceb6802172f4b0fbec Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 9 Aug 2019 09:36:50 +0200 Subject: [PATCH] - fixed an inconsistency with missiles bouncing off actors. They exploded when hitting a side but not when hitting top or bottom. Changed so that they always explode now. --- src/playsim/p_mobj.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/playsim/p_mobj.cpp b/src/playsim/p_mobj.cpp index 2cfcb543ec..10a420fa72 100644 --- a/src/playsim/p_mobj.cpp +++ b/src/playsim/p_mobj.cpp @@ -3968,7 +3968,13 @@ void AActor::Tick () } if (Vel.Z != 0 && (BounceFlags & BOUNCE_Actors)) { - P_BounceActor(this, onmo, true); + bool res = P_BounceActor(this, onmo, true); + // If the bouncer is a missile and has hit the other actor it needs to be exploded here + // to be in line with the case when an actor's side is hit. + if (!res && (flags & MF_MISSILE)) + { + P_ExplodeMissile(this, nullptr, onmo); + } } else {