mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 00:21:43 +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;
|
||||
double actualDistance;
|
||||
|
||||
if (self->target == nullptr) return 0;
|
||||
actualDistance = self->Distance3D(self->target);
|
||||
if (actualDistance < distance)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue