summaryrefslogtreecommitdiff
path: root/src/rail_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rail_map.h')
-rw-r--r--src/rail_map.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/rail_map.h b/src/rail_map.h
index 0937da730..a6077cf0d 100644
--- a/src/rail_map.h
+++ b/src/rail_map.h
@@ -83,6 +83,16 @@ static inline bool IsRailWaypoint(TileIndex t)
}
/**
+ * Is this tile rail tile and a rail waypoint?
+ * @param t the tile to get the information from
+ * @return true if and only if the tile is a rail waypoint
+ */
+static inline bool IsRailWaypointTile(TileIndex t)
+{
+ return IsTileType(t, MP_RAILWAY) && IsRailWaypoint(t);
+}
+
+/**
* Is this rail tile a rail depot?
* @param t the tile to get the information from
* @pre IsTileType(t, MP_RAILWAY)
@@ -96,7 +106,6 @@ static inline bool IsRailDepot(TileIndex t)
/**
* Is this tile rail tile and a rail depot?
* @param t the tile to get the information from
- * @pre IsTileType(t, MP_RAILWAY)
* @return true if and only if the tile is a rail depot
*/
static inline bool IsRailDepotTile(TileIndex t)