From e4e6735cea156cd0ca3985c31b629f48fc9fa93c Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 23 Dec 2010 20:25:55 +0000 Subject: (svn r21612) -Fix (r21608): dragging with HT_POINT was half a tile off --- src/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/viewport.cpp') 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; } -- cgit v1.2.3-54-g00ecf