mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-13 06:22:07 +00:00
Fixed successful bounces on Actor tops not damaging them
This commit is contained in:
parent
ac2c174161
commit
859bca4476
1 changed files with 4 additions and 5 deletions
|
@ -4379,14 +4379,13 @@ void AActor::Tick ()
|
||||||
}
|
}
|
||||||
if (Vel.Z != 0 && (BounceFlags & BOUNCE_Actors))
|
if (Vel.Z != 0 && (BounceFlags & BOUNCE_Actors))
|
||||||
{
|
{
|
||||||
bool res = P_BounceActor(this, onmo, true);
|
if (flags & MF_MISSILE)
|
||||||
|
P_DoMissileDamage(this, onmo);
|
||||||
|
|
||||||
// If the bouncer is a missile and has hit the other actor it needs to be exploded here
|
// 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.
|
// to be in line with the case when an actor's side is hit.
|
||||||
if (!res && (flags & MF_MISSILE))
|
if (!P_BounceActor(this, onmo, true) && (flags & MF_MISSILE))
|
||||||
{
|
|
||||||
P_DoMissileDamage(this, onmo);
|
|
||||||
P_ExplodeMissile(this, nullptr, onmo);
|
P_ExplodeMissile(this, nullptr, onmo);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue