aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2014-08-12 10:50:05 +0200
committerEugene Sandulenko2014-08-12 10:52:38 +0200
commit148793cadd5dc20122a80d3ddcc5f2abe4928524 (patch)
tree95d425ab5750478baa3176d0a8575f2a6857ed2a /engines
parent5b9c51d4b421edb9332124e0be2bc202bcac7b6e (diff)
downloadscummvm-rg350-148793cadd5dc20122a80d3ddcc5f2abe4928524.tar.gz
scummvm-rg350-148793cadd5dc20122a80d3ddcc5f2abe4928524.tar.bz2
scummvm-rg350-148793cadd5dc20122a80d3ddcc5f2abe4928524.zip
CGE2: Fix compilation
Diffstat (limited to 'engines')
-rw-r--r--engines/cge2/hero.cpp2
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;
}