mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
(svn r21612) -Fix (r21608): dragging with HT_POINT was half a tile off
This commit is contained in:
parent
7e65c65af9
commit
e4e6735cea
@ -2645,7 +2645,7 @@ void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method)
|
||||
}
|
||||
|
||||
/* 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;
|
||||
y += TILE_SIZE / 2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user