changeset 18289:a086b6cc10b0 draft

(svn r23125) -Codechange: Replace some 8s with TILE_SIZE / 2. (adf88)
author frosch <frosch@openttd.org>
date Sun, 06 Nov 2011 15:54:55 +0000
parents 969ade3ed490
children 5c97f9a40d05
files src/viewport.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -1887,8 +1887,8 @@
 	if (pt.x == -1) return;
 
 	if ((_thd.place_mode & HT_DRAG_MASK) == HT_POINT) {
-		pt.x += 8;
-		pt.y += 8;
+		pt.x += TILE_SIZE / 2;
+		pt.y += TILE_SIZE / 2;
 	}
 
 	_tile_fract_coords.x = pt.x & TILE_UNIT_MASK;