diff options
author | rubidium <rubidium@openttd.org> | 2009-11-09 10:40:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-09 10:40:33 +0000 |
commit | 860b9b1cead825da2dfc109858f8f134f973f62d (patch) | |
tree | 217816b8cd30cd32331090a36222f2e968c830e2 /src/road.cpp | |
parent | c2221885f488b9a7ca52b11e621582d4c60ab80d (diff) | |
download | openttd-860b9b1cead825da2dfc109858f8f134f973f62d.tar.xz |
(svn r18028) -Codechange: unglobalise some functions
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 && |