Changeset - r21256:e10d37d3260e
[Not reviewed]
master
0 1 0
planetmaker - 10 years ago 2014-02-16 17:03:58
planetmaker@openttd.org
(svn r26344) -Change [FS#5907]: Do not flood shores of type MP_TREE needlessly (MJP)
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/water_cmd.cpp
Show inline comments
 
@@ -1165,6 +1165,9 @@ void TileLoop_Water(TileIndex tile)
 
				/* do not try to flood water tiles - increases performance a lot */
 
				if (IsTileType(dest, MP_WATER)) continue;
 

	
 
				/* TREE_GROUND_SHORE is the sign of a previous flood. */
 
				if (IsTileType(dest, MP_TREES) && GetTreeGround(dest) == TREE_GROUND_SHORE) continue;
 

	
 
				int z_dest;
 
				Slope slope_dest = GetFoundationSlope(dest, &z_dest) & ~SLOPE_HALFTILE_MASK & ~SLOPE_STEEP;
 
				if (z_dest > 0) continue;
0 comments (0 inline, 0 general)