mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
Clean up a few things.
This commit is contained in:
parent
2da868656e
commit
eeca536d9a
1 changed files with 2 additions and 4 deletions
|
@ -5131,8 +5131,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RadiusGive)
|
||||||
TThinkerIterator<AActor> it;
|
TThinkerIterator<AActor> it;
|
||||||
while ((thing = it.Next()))
|
while ((thing = it.Next()))
|
||||||
{
|
{
|
||||||
bool giving = !!(DoRadiusGive(self, thing, item, amount, distance, flags, filter, species, mindist));
|
if (DoRadiusGive(self, thing, item, amount, distance, flags, filter, species, mindist)) given = true;
|
||||||
if (giving) given = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -5140,8 +5139,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RadiusGive)
|
||||||
FBlockThingsIterator it(FBoundingBox(self->X(), self->Y(), distance));
|
FBlockThingsIterator it(FBoundingBox(self->X(), self->Y(), distance));
|
||||||
while ((thing = it.Next()))
|
while ((thing = it.Next()))
|
||||||
{
|
{
|
||||||
bool giving = !!(DoRadiusGive(self, thing, item, amount, distance, flags, filter, species, mindist));
|
if (DoRadiusGive(self, thing, item, amount, distance, flags, filter, species, mindist)) given = true;
|
||||||
if (giving) given = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ACTION_SET_RESULT(given);
|
ACTION_SET_RESULT(given);
|
||||||
|
|
Loading…
Reference in a new issue