summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-11-15 18:07:30 +0000
committerrubidium <rubidium@openttd.org>2007-11-15 18:07:30 +0000
commit7faec2f54d3dc0ffb7dc14f9d151284de511a248 (patch)
treec7a5f578d330aabe7796ac95d75d0585102c10bc /src
parent7f780cbabf6b09dcebcbc487b42dd5d7f3f69e93 (diff)
downloadopenttd-7faec2f54d3dc0ffb7dc14f9d151284de511a248.tar.xz
(svn r11438) -Change: do not create shores in canyons. Based on a patch by LeviathNL.
Diffstat (limited to 'src')
-rw-r--r--src/landscape.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp
index c59d4a17c..1e38ce694 100644
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -658,11 +658,23 @@ void ConvertGroundTilesIntoWaterTiles()
case SLOPE_E:
case SLOPE_S:
case SLOPE_W:
+ MakeShore(tile);
+ break;
+
case SLOPE_NW:
+ if (GetTileSlope(TileAddByDiagDir(tile, DIAGDIR_SE), NULL) != SLOPE_SE) MakeShore(tile);
+ break;
+
case SLOPE_SW:
+ if (GetTileSlope(TileAddByDiagDir(tile, DIAGDIR_NE), NULL) != SLOPE_NE) MakeShore(tile);
+ break;
+
case SLOPE_SE:
+ if (GetTileSlope(TileAddByDiagDir(tile, DIAGDIR_NW), NULL) != SLOPE_NW) MakeShore(tile);
+ break;
+
case SLOPE_NE:
- MakeShore(tile);
+ if (GetTileSlope(TileAddByDiagDir(tile, DIAGDIR_SW), NULL) != SLOPE_SW) MakeShore(tile);
break;
default: