mirror of https://github.com/OpenTTD/OpenTTD
(svn r24924) -Fix (r24923): Make sure that autoslope on steep coast tiles cannot not leave invalid canals
parent
42883b9543
commit
9823fac63b
|
@ -175,8 +175,8 @@ void MakeWaterKeepingClass(TileIndex tile, Owner o)
|
||||||
wc = WATER_CLASS_INVALID;
|
wc = WATER_CLASS_INVALID;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* There must not be water sloped invalidly, whatever class it may be */
|
/* Only river water should be restored on appropriate slopes. Other water would be invalid on slopes */
|
||||||
if (GetInclinedSlopeDirection(slope) == INVALID_DIAGDIR) {
|
if (wc != WATER_CLASS_RIVER || GetInclinedSlopeDirection(slope) == INVALID_DIAGDIR) {
|
||||||
wc = WATER_CLASS_INVALID;
|
wc = WATER_CLASS_INVALID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue