Changeset - r22745:00eb9ee46c35
[Not reviewed]
master
0 1 0
peter1138 - 6 years ago 2018-03-05 22:57:49
peter1138@openttd.org
(svn r27973) -Fix: [FS#6662] Avoid tile operations outside map border when building lock.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/water_cmd.cpp
Show inline comments
 
@@ -70,13 +70,13 @@ static const uint8 _flood_from_dirs[] = 
 
 * Called to avoid glitches when flooding tiles next to canal tile.
 
 *
 
 * @param tile tile to check
 
 */
 
static inline void MarkTileDirtyIfCanalOrRiver(TileIndex tile)
 
{
 
	if (IsTileType(tile, MP_WATER) && (IsCanal(tile) || IsRiver(tile))) MarkTileDirtyByTile(tile);
 
	if (IsValidTile(tile) && IsTileType(tile, MP_WATER) && (IsCanal(tile) || IsRiver(tile))) MarkTileDirtyByTile(tile);
 
}
 

	
 
/**
 
 * Marks the tiles around a tile as dirty, if they are canals or rivers.
 
 *
 
 * @param tile The center of the tile where all other tiles are marked as dirty
0 comments (0 inline, 0 general)