From f6ff2a3c15cf6ae4fc7dd2c67faa658eb51ed89a Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 6 Nov 2011 15:54:55 +0000 Subject: (svn r23125) -Codechange: Replace some 8s with TILE_SIZE / 2. (adf88) --- src/viewport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/viewport.cpp b/src/viewport.cpp index 6beb60836..7bcd83d3e 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1887,8 +1887,8 @@ static void PlaceObject() 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; -- cgit v1.2.3-70-g09d2