mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-01 10:59:12 +00:00
Fix 319caef58f
: Buildings with non-zero subtile offsets broken in house picker. (#14390)
Partially reverts 319caef58f
. Conversion of subtile position was originally correct.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user