mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-04 01:41:56 +00:00
- added missing target check to A_RadiusDamageSelf.
This commit is contained in:
parent
5ad11d7587
commit
8eb09a0099
1 changed files with 1 additions and 0 deletions
|
@ -863,6 +863,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