diff options
author | Yexo <Yexo@openttd.org> | 2009-01-21 22:35:07 +0000 |
---|---|---|
committer | Yexo <Yexo@openttd.org> | 2009-01-21 22:35:07 +0000 |
commit | a7ff5d4aaefbb4d94bb7b600b60d5e281cb39e6d (patch) | |
tree | a0a27425a039a20d7e52e5817db202325d933d53 /src | |
parent | eadd12e4ff1cc2b63a0c736c61caab8c00eade78 (diff) | |
download | openttd-a7ff5d4aaefbb4d94bb7b600b60d5e281cb39e6d.tar.xz |
(svn r15199) -Fix (r15190): The south point of the south-most tile wasn't highlighted during terraforming.
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 2227c8ca1..114db297e 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1008,8 +1008,8 @@ static void ViewportAddLandscape() _tile_type_procs[tt]->draw_tile_proc(&ti); - if ((x_cur == (int)MapMaxX() * TILE_SIZE && IsInsideMM(y_cur, 0, MapMaxY() * TILE_SIZE)) || - (y_cur == (int)MapMaxY() * TILE_SIZE && IsInsideMM(x_cur, 0, MapMaxX() * TILE_SIZE))) { + if ((x_cur == (int)MapMaxX() * TILE_SIZE && IsInsideMM(y_cur, 0, MapMaxY() * TILE_SIZE + 1)) || + (y_cur == (int)MapMaxY() * TILE_SIZE && IsInsideMM(x_cur, 0, MapMaxX() * TILE_SIZE + 1))) { TileIndex tile = TileVirtXY(x_cur, y_cur); ti.tile = tile; ti.tileh = GetTileSlope(tile, &ti.z); |