From 01dacce54964834f83689e7d9d2b32ff228b9e46 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 26 Apr 2012 03:30:02 +0000 Subject: [PATCH] - Fixed: Bouncing missiles landing on an actor would just stop rather than bounce. SVN r3596 (trunk) --- src/p_mobj.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index bcb5ba976..a0784dbf0 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -3305,9 +3305,17 @@ void AActor::Tick () } z = onmo->z + onmo->height; } - flags2 |= MF2_ONMOBJ; - velz = 0; - Crash(); + if (velz != 0 && (flags & MF_MISSILE) && (BounceFlags & BOUNCE_Actors)) + { + secplane_t plane = { 0, 0, FRACUNIT, -z, FRACUNIT }; + FloorBounceMissile(plane); + } + else + { + flags2 |= MF2_ONMOBJ; + velz = 0; + Crash(); + } } } else