Fix: Coordinate transformation for JSON town placement when anticlockwise

This commit is contained in:
Jonathan G Rennison
2026-04-16 00:32:00 +01:00
committed by rubidium42
parent e09cca949f
commit fd855aa61d
+1 -1
View File
@@ -452,7 +452,7 @@ void LoadTownData()
break;
case HM_COUNTER_CLOCKWISE:
/* Tile coordinates are rotated and must be adjusted. */
target_tile = TileXY((1 - y_proportion * Map::MaxX()), x_proportion * Map::MaxY());
target_tile = TileXY((1 - y_proportion) * Map::MaxX(), x_proportion * Map::MaxY());
break;
default: NOT_REACHED();
}