mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-04-30 09:01:41 -04:00
reduce compile warning .
This commit is contained in:
parent
c890d9a480
commit
120af09fc2
1 changed files with 2 additions and 1 deletions
|
@ -663,7 +663,8 @@ inline MapCoords CMapData::ToMapCoords(ProjectedCoords xy) const
|
|||
|
||||
inline MapCoords CMapData::ToMapCoords3d(ProjectedCoords xy, int mapZ) const
|
||||
{
|
||||
float cx = xy.x, cy = xy.y + mapZ * f_y / 2;
|
||||
auto const cx = static_cast<float>(xy.x);
|
||||
auto const cy = static_cast<float>(xy.y + mapZ * f_y / 2);
|
||||
return MapCoords(
|
||||
cy / (float)f_y - cx / (float)f_x + (float)(m_IsoSize - 2) / 2 + (float)0.5,
|
||||
cy / (float)f_y + cx / (float)f_x - (float)(m_IsoSize - 2) / 2.0f - (float)0.5
|
||||
|
|
Loading…
Add table
Reference in a new issue