# HG changeset patch # User smatz # Date 2010-12-23 20:25:55 # Node ID fba815a0ba4e717f0c766644c5f8d97dee53433e # Parent 2347c693dbd9a618cf0a8e55c7bfb3582d56856f (svn r21612) -Fix (r21608): dragging with HT_POINT was half a tile off diff --git a/src/viewport.cpp b/src/viewport.cpp --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -2645,7 +2645,7 @@ void VpSelectTilesWithMethod(int x, int } /* 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; }