mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- 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.
This commit is contained in:
parent
a239675fb5
commit
5ca1bb3979
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue