From ced35e98fbb8f327729970d107f3a431eb9c6495 Mon Sep 17 00:00:00 2001 From: MajorCooke Date: Mon, 25 Jan 2016 10:07:00 -0600 Subject: [PATCH] Remove needless check. --- src/thingdef/thingdef_codeptr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index 28a7dfcf6..37f228eb1 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -6036,7 +6036,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CheckProximity) { current = ref->AproxDistance(mo); - if ((flags & CPXF_CLOSEST) && ((current < closer) || !closer)) + if ((flags & CPXF_CLOSEST) && (current < closer)) { dist = mo; closer = current; //This actor's closer. Set the new standard.