Changeset - r19968:51360c0bd75c
[Not reviewed]
master
0 1 0
planetmaker - 11 years ago 2013-01-20 13:50:10
planetmaker@openttd.org
(svn r24924) -Fix (r24923): Make sure that autoslope on steep coast tiles cannot not leave invalid canals
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/water_cmd.cpp
Show inline comments
 
@@ -175,8 +175,8 @@ void MakeWaterKeepingClass(TileIndex til
 
			wc = WATER_CLASS_INVALID;
 
		}
 

	
 
		/* There must not be water sloped invalidly, whatever class it may be */
 
		if (GetInclinedSlopeDirection(slope) == INVALID_DIAGDIR) {
 
		/* Only river water should be restored on appropriate slopes. Other water would be invalid on slopes */
 
		if (wc != WATER_CLASS_RIVER || GetInclinedSlopeDirection(slope) == INVALID_DIAGDIR) {
 
			wc = WATER_CLASS_INVALID;
 
		}
 
	}
0 comments (0 inline, 0 general)