summaryrefslogtreecommitdiff
path: root/src/road_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/road_map.h')
-rw-r--r--src/road_map.h12
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)
{