mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Fix: Coordinate transformation for JSON town placement when anticlockwise
This commit is contained in:
committed by
rubidium42
parent
e09cca949f
commit
fd855aa61d
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user