mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
CGE2: Fix compilation
This commit is contained in:
parent
5b9c51d4b4
commit
148793cadd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user