--- a/station.h Sun Mar 26 22:41:56 2006 +0000
+++ b/station.h Sun Mar 26 22:55:27 2006 +0000
@@ -14,7 +14,7 @@
uint16 waiting_acceptance;
byte days_since_pickup;
byte rating;
- uint16 enroute_from;
+ StationID enroute_from;
byte enroute_time;
byte last_speed;
byte last_age;
@@ -32,8 +32,6 @@
ROAD_STOP_LIMIT = 16,
};
-typedef uint16 StationID;
-
typedef struct RoadStop {
TileIndex xy;
bool used;
@@ -150,7 +148,7 @@
return _station_pool.total_items;
}
-static inline bool IsStationIndex(uint index)
+static inline bool IsStationIndex(StationID index)
{
return index < GetStationPoolSize();
}