diff options
author | smatz <smatz@openttd.org> | 2010-12-23 20:25:55 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2010-12-23 20:25:55 +0000 |
commit | e4e6735cea156cd0ca3985c31b629f48fc9fa93c (patch) | |
tree | 90b926321aefb154e1cf4a5449b69ad8ac534c11 /src | |
parent | 7e65c65af95716cd0aa5069b289fec2094f08d4f (diff) | |
download | openttd-e4e6735cea156cd0ca3985c31b629f48fc9fa93c.tar.xz |
(svn r21612) -Fix (r21608): dragging with HT_POINT was half a tile off
Diffstat (limited to 'src')
-rw-r--r-- | src/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp index cf58fccf5..8b08feb3f 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -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; } |