From eeca536d9a38daf99ad8bc0c7ce9c360c550aaa9 Mon Sep 17 00:00:00 2001 From: MajorCooke Date: Fri, 29 Jan 2016 10:41:05 -0600 Subject: [PATCH] Clean up a few things. --- src/thingdef/thingdef_codeptr.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index 4f674955c..b25d108cc 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -5131,8 +5131,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_RadiusGive) TThinkerIterator 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);