From fd855aa61d4c8ab7a63eaa4ea9fd5a1073db7004 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 16 Apr 2026 00:32:00 +0100 Subject: [PATCH] Fix: Coordinate transformation for JSON town placement when anticlockwise --- src/genworld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/genworld.cpp b/src/genworld.cpp index 0f51bff595..d6f4eefec9 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -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(); }