summaryrefslogtreecommitdiff
path: root/src/water_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r--src/water_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp
index ae5efada7..9d099f5dc 100644
--- a/src/water_cmd.cpp
+++ b/src/water_cmd.cpp
@@ -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;
}
}