1
0
Fork 0

Fix 319caef58f: Buildings with non-zero subtile offsets broken in house picker. (#14390)

Partially reverts 319caef58f. Conversion of subtile position was originally correct.
pull/13289/head
Peter Nelson 2025-06-25 18:33:15 +01:00 committed by GitHub
parent b3c96a7785
commit d5ebd20110
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
};