diff options
author | frosch <frosch@openttd.org> | 2011-11-06 15:54:55 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-11-06 15:54:55 +0000 |
commit | f6ff2a3c15cf6ae4fc7dd2c67faa658eb51ed89a (patch) | |
tree | 0ec7113df6ecc3fb8f36ca84a78debd6c98bd328 /src | |
parent | 1b66101bd30cb2c13d6c3fd735142b8e68230d24 (diff) | |
download | openttd-f6ff2a3c15cf6ae4fc7dd2c67faa658eb51ed89a.tar.xz |
(svn r23125) -Codechange: Replace some 8s with TILE_SIZE / 2. (adf88)
Diffstat (limited to 'src')
-rw-r--r-- | src/viewport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |