Mercurial > hg > openttd
diff src/viewport.cpp @ 10864:e10213483b43 draft
(svn r15199) -Fix (r15190): The south point of the south-most tile wasn't highlighted during terraforming.
author | Yexo <Yexo@openttd.org> |
---|---|
date | Wed, 21 Jan 2009 22:35:07 +0000 (2009-01-21) |
parents | 7881d9cd55ab |
children | a4e5b5d2837c |
line wrap: on
line diff
--- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -1008,8 +1008,8 @@ _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);