mirror of https://github.com/OpenTTD/OpenTTD
(svn r21612) -Fix (r21608): dragging with HT_POINT was half a tile off
parent
7e65c65af9
commit
e4e6735cea
|
@ -2645,7 +2645,7 @@ void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Needed so level-land is placed correctly */
|
/* Needed so level-land is placed correctly */
|
||||||
if (_thd.next_drawstyle == HT_POINT) {
|
if ((_thd.next_drawstyle & HT_DRAG_MASK) == HT_POINT) {
|
||||||
x += TILE_SIZE / 2;
|
x += TILE_SIZE / 2;
|
||||||
y += TILE_SIZE / 2;
|
y += TILE_SIZE / 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue