1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 16:39:09 +00:00

(svn r23094) -Codechange: add a default NULL to GetFoundationSlope and use it

This commit is contained in:
rubidium
2011-11-04 10:23:48 +00:00
parent 2ed0f93bfb
commit ecbc56a677
5 changed files with 7 additions and 6 deletions

View File

@@ -32,7 +32,7 @@ static bool IsPossibleCrossing(const TileIndex tile, Axis ax)
return (IsTileType(tile, MP_RAILWAY) &&
GetRailTileType(tile) == RAIL_TILE_NORMAL &&
GetTrackBits(tile) == (ax == AXIS_X ? TRACK_BIT_Y : TRACK_BIT_X) &&
GetFoundationPixelSlope(tile, NULL) == SLOPE_FLAT);
GetFoundationSlope(tile) == SLOPE_FLAT);
}
/**