Skip to content
Permalink
Browse files

- 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.
  • Loading branch information...
coelckers committed Aug 9, 2019
1 parent a239675 commit 5ca1bb39799865523ade57ceb6802172f4b0fbec
Showing with 7 additions and 1 deletion.
  1. +7 −1 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
{

0 comments on commit 5ca1bb3

Please sign in to comment.
You can’t perform that action at this time.