changeset 16878:eadeaf720204 draft

(svn r21612) -Fix (r21608): dragging with HT_POINT was half a tile off
author smatz <smatz@openttd.org>
date Thu, 23 Dec 2010 20:25:55 +0000
parents 71fad72023bb
children c15d819823e3
files src/viewport.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -2645,7 +2645,7 @@
 	}
 
 	/* 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;
 	}