From 97a03538e7d756dfc5357d29fcafe98ca00d2055 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 25 Jun 2025 14:56:49 +0100 Subject: [PATCH] Fix 319caef58f: Buildings with non-zero subtile offsets broken in house picker. Partially reverts 319caef58f. Conversion of subtile position was originally correct. --- src/town_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/town_gui.cpp b/src/town_gui.cpp index 05ffc178de..89f4bf655e 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -1377,7 +1377,7 @@ void DrawHouseInGUI(int x, int y, HouseID house_id, int view) /* Add a house on top of the ground? */ if (dcts.building.sprite != 0) { Point pt = RemapCoords(dcts.subtile_x, dcts.subtile_y, 0); - DrawSprite(dcts.building.sprite, dcts.building.pal, x + ScaleSpriteTrad(pt.x), y + ScaleSpriteTrad(pt.y)); + DrawSprite(dcts.building.sprite, dcts.building.pal, x + UnScaleGUI(pt.x), y + UnScaleGUI(pt.y)); } };