diff options
Diffstat (limited to 'src/road.cpp')
-rw-r--r-- | src/road.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/road.cpp b/src/road.cpp index 5e802f786..705270186 100644 --- a/src/road.cpp +++ b/src/road.cpp @@ -21,7 +21,14 @@ #include "date_func.h" #include "landscape.h" -bool IsPossibleCrossing(const TileIndex tile, Axis ax) +/** + * Return if the tile is a valid tile for a crossing. + * + * @param tile the curent tile + * @param ax the axis of the road over the rail + * @return true if it is a valid tile + */ +static bool IsPossibleCrossing(const TileIndex tile, Axis ax) { return (IsTileType(tile, MP_RAILWAY) && GetRailTileType(tile) == RAIL_TILE_NORMAL && |