mirror of https://github.com/OpenTTD/OpenTTD
Fix 319caef58f: Buildings with non-zero subtile offsets broken in house picker.
Partially reverts 319caef58f
. Conversion of subtile position was originally correct.
pull/14390/head
parent
b3c96a7785
commit
97a03538e7
|
@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue