diff options
author | rubidium <rubidium@openttd.org> | 2007-11-15 18:07:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-15 18:07:30 +0000 |
commit | f3c94c5830c4974206a73509cf827960fcbc43db (patch) | |
tree | c7a5f578d330aabe7796ac95d75d0585102c10bc /src | |
parent | 59afbb034496140a84241b71a80807faba55a13f (diff) | |
download | openttd-f3c94c5830c4974206a73509cf827960fcbc43db.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.cpp | 14 |
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: |