[Scummvm-cvs-logs] scummvm master -> 148793cadd5dc20122a80d3ddcc5f2abe4928524
sev-
sev at scummvm.org
Tue Aug 12 10:53:38 CEST 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
148793cadd CGE2: Fix compilation
Commit: 148793cadd5dc20122a80d3ddcc5f2abe4928524
https://github.com/scummvm/scummvm/commit/148793cadd5dc20122a80d3ddcc5f2abe4928524
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2014-08-12T10:52:38+02:00
Commit Message:
CGE2: Fix compilation
Changed paths:
engines/cge2/hero.cpp
diff --git a/engines/cge2/hero.cpp b/engines/cge2/hero.cpp
index e8267b5..8236386 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;
}
More information about the Scummvm-git-logs
mailing list