diff options
author | Darkvater <darkvater@openttd.org> | 2006-03-26 22:55:27 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-03-26 22:55:27 +0000 |
commit | 2c27f45cdc31c0466d72eb8d1539448b93af0d5b (patch) | |
tree | 5375ce61c67417cfbafdc80258742b527d4675c3 /vehicle.h | |
parent | 2ba792d64447968bbd18c755a6e4d1720728c5ae (diff) | |
download | openttd-2c27f45cdc31c0466d72eb8d1539448b93af0d5b.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 'vehicle.h')
-rw-r--r-- | vehicle.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -97,7 +97,7 @@ typedef struct VehicleAir { uint16 crashed_counter; byte pos; byte previous_pos; - uint16 targetairport; + StationID targetairport; byte state; } VehicleAir; @@ -176,11 +176,11 @@ struct Vehicle { byte progress; byte vehstatus; // Status - uint16 last_station_visited; + StationID last_station_visited; CargoID cargo_type; // type of cargo this vehicle is carrying byte cargo_days; // how many days have the pieces been in transit - uint16 cargo_source;// source of cargo + StationID cargo_source;// source of cargo uint16 cargo_cap; // total capacity uint16 cargo_count;// how many pieces are used |