Mercurial > hg > openttd
changeset 19992:69d87522a042 draft
(svn r24924) -Fix (r24923): Make sure that autoslope on steep coast tiles cannot not leave invalid canals
author | planetmaker <planetmaker@openttd.org> |
---|---|
date | Sun, 20 Jan 2013 13:50:10 +0000 |
parents | 3f59c15c878b |
children | b2a09fbdcbc8 |
files | src/water_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -175,8 +175,8 @@ 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; } }