diff options
author | rubidium <rubidium@openttd.org> | 2007-12-18 20:38:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-18 20:38:16 +0000 |
commit | e4ef359f47469b426b8e4a06fe0da867f03e82f3 (patch) | |
tree | ef4a6bb4a773d9059b275cbfc7ca5554349c93ca /src/road_map.h | |
parent | df0c6eb2b9bfcdca6e220586340348ac3e3a00c5 (diff) | |
download | openttd-e4ef359f47469b426b8e4a06fe0da867f03e82f3.tar.xz |
(svn r11663) -Codechange: moving of the road related types and functions.
Diffstat (limited to 'src/road_map.h')
-rw-r--r-- | src/road_map.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/road_map.h b/src/road_map.h index add991214..02ec36512 100644 --- a/src/road_map.h +++ b/src/road_map.h @@ -8,7 +8,7 @@ #include "macros.h" #include "track_func.h" #include "rail_type.h" -#include "road.h" +#include "road_func.h" #include "tile.h" @@ -305,6 +305,16 @@ RoadBits GetAnyRoadBits(TileIndex tile, RoadType rt); */ TrackBits GetAnyRoadTrackBits(TileIndex tile, RoadType rt); +/** + * Return if the tile is a valid tile for a crossing. + * + * @note function is overloaded + * @param tile the curent tile + * @param ax the axis of the road over the rail + * @return true if it is a valid tile + */ +bool IsPossibleCrossing(const TileIndex tile, Axis ax); + static inline void MakeRoadNormal(TileIndex t, RoadBits bits, RoadTypes rot, TownID town, Owner road, Owner tram, Owner hway) { |