From ab3ed5c43121cc8adefc0c6bbcf9ef0d1203d3ff Mon Sep 17 00:00:00 2001 From: truelight Date: Wed, 2 Feb 2005 16:16:43 +0000 Subject: (svn r1770) -Fix: Hopefully last pieces of code that are containing a station-id (and should be an uint16, not uint8) --- station.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'station.h') diff --git a/station.h b/station.h index 8bfb28d68..7202099c6 100644 --- a/station.h +++ b/station.h @@ -9,7 +9,7 @@ typedef struct GoodsEntry { uint16 waiting_acceptance; byte days_since_pickup; byte rating; - byte enroute_from; + uint16 enroute_from; byte enroute_time; byte last_speed; byte last_age; @@ -20,10 +20,13 @@ typedef enum RoadStopType { RS_TRUCK } RoadStopType; -enum { NUM_ROAD_STOPS = 250 }; -enum { ROAD_STOP_LIMIT = 8 }; -enum { NUM_SLOTS = 2 }; -enum { INVALID_SLOT = 0xFFFF }; +enum { + INVALID_STATION = 0xFFFF, + INVALID_SLOT = 0xFFFF, + NUM_SLOTS = 2, + ROAD_STOP_LIMIT = 8, + NUM_ROAD_STOPS = 250, +}; typedef struct RoadStop { TileIndex xy; -- cgit v1.2.3-54-g00ecf