mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 04:51:19 +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;
|
||||
while ((thing = it.Next()))
|
||||
{
|
||||
bool giving = !!(DoRadiusGive(self, thing, item, amount, distance, flags, filter, species, mindist));
|
||||
if (giving) given = true;
|
||||
if (DoRadiusGive(self, thing, item, amount, distance, flags, filter, species, mindist)) given = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -5140,8 +5139,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RadiusGive)
|
|||
FBlockThingsIterator it(FBoundingBox(self->X(), self->Y(), distance));
|
||||
while ((thing = it.Next()))
|
||||
{
|
||||
bool giving = !!(DoRadiusGive(self, thing, item, amount, distance, flags, filter, species, mindist));
|
||||
if (giving) given = true;
|
||||
if (DoRadiusGive(self, thing, item, amount, distance, flags, filter, species, mindist)) given = true;
|
||||
}
|
||||
}
|
||||
ACTION_SET_RESULT(given);
|
||||
|
|
Loading…
Reference in a new issue