mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r11438) -Change: do not create shores in canyons. Based on a patch by LeviathNL.
This commit is contained in:
parent
7f780cbabf
commit
7faec2f54d
|
@ -658,13 +658,25 @@ void ConvertGroundTilesIntoWaterTiles()
|
|||
case SLOPE_E:
|
||||
case SLOPE_S:
|
||||
case SLOPE_W:
|
||||
case SLOPE_NW:
|
||||
case SLOPE_SW:
|
||||
case SLOPE_SE:
|
||||
case SLOPE_NE:
|
||||
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:
|
||||
if (GetTileSlope(TileAddByDiagDir(tile, DIAGDIR_SW), NULL) != SLOPE_SW) MakeShore(tile);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue