mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- fixed RGF_NOSIGHT checking for A_RadiusGive.
This commit is contained in:
parent
301092217f
commit
31611c17d5
1 changed files with 1 additions and 1 deletions
|
@ -4783,7 +4783,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RadiusGive)
|
||||||
}
|
}
|
||||||
fixed_t dz = abs ((thing->z + thing->height/2) - (self->z + self->height/2));
|
fixed_t dz = abs ((thing->z + thing->height/2) - (self->z + self->height/2));
|
||||||
|
|
||||||
if (P_CheckSight (thing, self, SF_IGNOREVISIBILITY|SF_IGNOREWATERBOUNDARY) || (RGF_NOSIGHT))
|
if ((flags & RGF_NOSIGHT) || P_CheckSight (thing, self, SF_IGNOREVISIBILITY|SF_IGNOREWATERBOUNDARY))
|
||||||
{ // OK to give; target is in direct path, or the monster doesn't care about it being in line of sight.
|
{ // OK to give; target is in direct path, or the monster doesn't care about it being in line of sight.
|
||||||
AInventory *gift = static_cast<AInventory *>(Spawn (item, 0, 0, 0, NO_REPLACE));
|
AInventory *gift = static_cast<AInventory *>(Spawn (item, 0, 0, 0, NO_REPLACE));
|
||||||
if (gift->IsKindOf(RUNTIME_CLASS(AHealth)))
|
if (gift->IsKindOf(RUNTIME_CLASS(AHealth)))
|
||||||
|
|
Loading…
Reference in a new issue