diff options
-rw-r--r-- | engines/cge2/hero.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cge2/hero.cpp b/engines/cge2/hero.cpp index e8267b5af2..82363860aa 100644 --- a/engines/cge2/hero.cpp +++ b/engines/cge2/hero.cpp @@ -331,7 +331,7 @@ int Hero::distance(V3D pos) { V3D di = _pos3D - pos; int x = di._x.round(); int z = di._z.round(); - int retval = (int)sqrt((long double)x * x + z * z); + int retval = (int)sqrt((double)x * x + z * z); return retval; } |