From c4badcea6e2918255e28dcc87a2fbc7e5ce27448 Mon Sep 17 00:00:00 2001 From: terrorfisch Date: Fri, 10 Oct 2014 23:51:29 +0200 Subject: [PATCH] removed warning --- apps/openmw/mwmechanics/pathfinding.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/openmw/mwmechanics/pathfinding.cpp b/apps/openmw/mwmechanics/pathfinding.cpp index 8f0da94e1f..f1279c415e 100644 --- a/apps/openmw/mwmechanics/pathfinding.cpp +++ b/apps/openmw/mwmechanics/pathfinding.cpp @@ -278,7 +278,6 @@ namespace MWMechanics const ESM::Pathgrid::Point &nextPoint = *mPath.begin(); float directionX = nextPoint.mX - x; float directionY = nextPoint.mY - y; - float directionResult = sqrt(directionX * directionX + directionY * directionY); return Ogre::Math::ATan2(directionX,directionY).valueDegrees(); }