Clean up a few things.

This commit is contained in:
MajorCooke 2016-01-29 10:41:05 -06:00
parent 2da868656e
commit eeca536d9a

View file

@ -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);