CGE2: Fix compilation

This commit is contained in:
Eugene Sandulenko 2014-08-12 10:50:05 +02:00
parent 5b9c51d4b4
commit 148793cadd

View File

@ -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;
}