(svn r21612) -Fix (r21608): dragging with HT_POINT was half a tile off

This commit is contained in:
smatz 2010-12-23 20:25:55 +00:00
parent 7e65c65af9
commit e4e6735cea
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}