diff options
author | truelight <truelight@openttd.org> | 2005-02-02 16:16:43 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-02-02 16:16:43 +0000 |
commit | 0668a6b485fbe99e4fb465cb9efbd5a42f0a1bf9 (patch) | |
tree | 76125ad531fb31d62d879d3f5541edf39532e2d5 /station.h | |
parent | c51ed8465d1726d554068ffd9cc278ea50e8e223 (diff) | |
download | openttd-0668a6b485fbe99e4fb465cb9efbd5a42f0a1bf9.tar.xz |
(svn r1770) -Fix: Hopefully last pieces of code that are containing a station-id
(and should be an uint16, not uint8)
Diffstat (limited to 'station.h')
-rw-r--r-- | station.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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; |