diff --git a/src/thingdef/thingdef_codeptr.cpp b/src/thingdef/thingdef_codeptr.cpp index 53685c43b..03f011b41 100644 --- a/src/thingdef/thingdef_codeptr.cpp +++ b/src/thingdef/thingdef_codeptr.cpp @@ -3120,7 +3120,7 @@ static bool DoCheckSightOrRange(AActor *self, AActor *camera, double range, bool dz = 0; } double distance = DVector3(pos, twodi? 0. : dz).LengthSquared(); - if (distance <= range*range) + if (distance <= range) { // Within range return true;