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 /economy.c | |
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 'economy.c')
-rw-r--r-- | economy.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1230,7 +1230,7 @@ static bool CheckSubsidised(Station *from, Station *to, CargoID cargo_type) return false; } -static int32 DeliverGoods(int num_pieces, CargoID cargo_type, uint16 source, uint16 dest, byte days_in_transit) +static int32 DeliverGoods(int num_pieces, CargoID cargo_type, StationID source, StationID dest, byte days_in_transit) { bool subsidised; Station *s_from, *s_to; @@ -1340,7 +1340,7 @@ int LoadUnloadVehicle(Vehicle *v) int unloading_time = 20; Vehicle *u = v; int result = 0; - uint16 last_visited; + StationID last_visited; Station *st; int t; uint count, cap; |