mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Use only one coordinate system for locations in the rmgen system.
Thereby fix the distance check of the SimpleObject, refs #4338, D189 and remove the CELL_SIZE engine constant magic number, refs #4034. Differential Revision: https://code.wildfiregames.com/D996 Thanks a lot to rapidelectron and temple who independently discovered this! This was SVN commit r20396.
This commit is contained in:
@@ -1383,7 +1383,7 @@ int CMapReader::ParseEntities()
|
||||
CmpPtr<ICmpPosition> cmpPosition(sim, ent);
|
||||
if (cmpPosition)
|
||||
{
|
||||
cmpPosition->JumpTo(currEnt.position.X, currEnt.position.Z);
|
||||
cmpPosition->JumpTo(currEnt.position.X * (int)TERRAIN_TILE_SIZE, currEnt.position.Z * (int)TERRAIN_TILE_SIZE);
|
||||
cmpPosition->SetYRotation(currEnt.rotation.Y);
|
||||
// TODO: other parts of the position
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user