1
0
Fork 0

(svn r24924) -Fix (r24923): Make sure that autoslope on steep coast tiles cannot not leave invalid canals

release/1.3
planetmaker 2013-01-20 13:50:10 +00:00
parent 42883b9543
commit 9823fac63b
1 changed files with 2 additions and 2 deletions

View File

@ -175,8 +175,8 @@ void MakeWaterKeepingClass(TileIndex tile, Owner o)
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;
}
}