summaryrefslogtreecommitdiff
path: root/waypoint.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-03-26 22:55:27 +0000
committerDarkvater <Darkvater@openttd.org>2006-03-26 22:55:27 +0000
commitd155f182acc63d3eaea1f31ec13faae6955bfc47 (patch)
tree5375ce61c67417cfbafdc80258742b527d4675c3 /waypoint.h
parent0df43399414ee0fd33f314116d75fb754837d3e3 (diff)
downloadopenttd-d155f182acc63d3eaea1f31ec13faae6955bfc47.tar.xz
(svn r4131) - CodeChange: Add proper semantics for StationID for such variables instead of using the general uint16-type. StationID was added for depots, waypoints and stations where necessary. We probably need to change GetDepot(), IsDepotIndex(), IsStationIndex(), GetWaypoint() and IsWaypointIndex() as well to use StationID.
Diffstat (limited to 'waypoint.h')
-rw-r--r--waypoint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/waypoint.h b/waypoint.h
index 4842d1a31..763694f8c 100644
--- a/waypoint.h
+++ b/waypoint.h
@@ -8,7 +8,7 @@
struct Waypoint {
TileIndex xy; ///< Tile of waypoint
- uint16 index; ///< Index of waypoint
+ StationID index; ///< Index of waypoint
TownID town_index; ///< Town associated with the waypoint
byte town_cn; ///< The Nth waypoint for this town (consecutive number)