Mercurial > hg > openttd
changeset 7887:4342fafbe9ee draft
(svn r11438) -Change: do not create shores in canyons. Based on a patch by LeviathNL.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 15 Nov 2007 18:07:30 +0000 |
parents | 6551a3580d2e |
children | 194fee5b8120 |
files | src/landscape.cpp |
diffstat | 1 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/landscape.cpp +++ b/src/landscape.cpp @@ -658,11 +658,23 @@ 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: