(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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user