mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed incomplete null checks in A_RadiusThrust.
This commit is contained in:
parent
719598aae4
commit
1f33ba2c4d
1 changed files with 9 additions and 6 deletions
|
@ -616,17 +616,20 @@ extend class Actor
|
|||
{
|
||||
if (force == 0) force = 128;
|
||||
if (distance <= 0) distance = abs(force);
|
||||
bool nothrust = false;
|
||||
|
||||
bool nothrust = target.bNoDamageThrust;
|
||||
// Temporarily negate MF2_NODMGTHRUST on the shooter, since it renders this function useless.
|
||||
if (!(flags & RTF_NOTMISSILE) && target != NULL)
|
||||
if (target)
|
||||
{
|
||||
target.bNoDamageThrust = false;
|
||||
nothrust = target.bNoDamageThrust;
|
||||
// Temporarily negate MF2_NODMGTHRUST on the shooter, since it renders this function useless.
|
||||
if (!(flags & RTF_NOTMISSILE))
|
||||
{
|
||||
target.bNoDamageThrust = false;
|
||||
}
|
||||
}
|
||||
|
||||
RadiusAttack (target, force, distance, DamageType, flags | RADF_NODAMAGE, fullthrustdistance);
|
||||
CheckSplash(distance);
|
||||
target.bNoDamageThrust = nothrust;
|
||||
if (target) target.bNoDamageThrust = nothrust;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue