mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-01 22:30:48 +00:00
- added missing target check to A_RadiusDamageSelf.
This commit is contained in:
parent
9c7bc99201
commit
cfd8d07bf8
1 changed files with 1 additions and 0 deletions
|
@ -845,6 +845,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_RadiusDamageSelf)
|
||||||
int actualDamage;
|
int actualDamage;
|
||||||
double actualDistance;
|
double actualDistance;
|
||||||
|
|
||||||
|
if (self->target == nullptr) return 0;
|
||||||
actualDistance = self->Distance3D(self->target);
|
actualDistance = self->Distance3D(self->target);
|
||||||
if (actualDistance < distance)
|
if (actualDistance < distance)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue