-
Notifications
You must be signed in to change notification settings - Fork 23
Description
KisakCOD/src/qcommon/msg_mp.cpp
Line 1275 in 05929da
| roundedCenter = (int)((*CL_GetMapCenter())[index] + 0.5); |
KisakCOD/src/qcommon/msg_mp.cpp
Line 1290 in 05929da
| roundedCenter = (int)((*CL_GetMapCenter())[2] + 0.5); |
KisakCOD/src/qcommon/sv_msg_write_mp.cpp
Line 1010 in 05929da
| roundedCentera = (svsHeader.mapCenter[indexa] + 0.5); |
KisakCOD/src/qcommon/sv_msg_write_mp.cpp
Line 1063 in 05929da
| roundedCenter = (svsHeader.mapCenter[index] + 0.5); |
KisakCOD/src/qcommon/sv_msg_write_mp.cpp
Line 1116 in 05929da
| roundedCentera = (svsHeader.mapCenter[2] + 0.5); |
KisakCOD/src/qcommon/sv_msg_write_mp.cpp
Line 1140 in 05929da
| roundedCenter = (svsHeader.mapCenter[2] + 0.5); |
As far as I can tell, the above code is the same as in the v1.7 pc executable.
It's an unfortunate way of rounding, though; e.g. -1.49f gets rounded to 0. I'd suggest using either std::round or just float to integer conversion.