diff options
author | rubidium <rubidium@openttd.org> | 2009-07-28 21:06:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-28 21:06:38 +0000 |
commit | e473e69ba4d59df7f9cdd9a5010cf54a66fd5b90 (patch) | |
tree | a362d0c8540e1ecb4ba9ab1cc8c382106d972ac0 /src/order_cmd.cpp | |
parent | ffa0c7d29d484094832a85e2e0cdbc2f9a9f2a18 (diff) | |
download | openttd-e473e69ba4d59df7f9cdd9a5010cf54a66fd5b90.tar.xz |
(svn r16976) -Codechange: remove WaypointID and MAX_LENGTH constants in favour of their Station variants
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r-- | src/order_cmd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 3d43c5068..06a9ef5ac 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -32,7 +32,6 @@ * be any of them */ assert_compile(sizeof(DestinationID) >= sizeof(DepotID)); -assert_compile(sizeof(DestinationID) >= sizeof(WaypointID)); assert_compile(sizeof(DestinationID) >= sizeof(StationID)); TileIndex _backup_orders_tile; @@ -68,7 +67,7 @@ void Order::MakeGoToDepot(DepotID destination, OrderDepotTypeFlags order, OrderN this->SetRefit(cargo, subtype); } -void Order::MakeGoToWaypoint(WaypointID destination) +void Order::MakeGoToWaypoint(StationID destination) { this->type = OT_GOTO_WAYPOINT; this->flags = 0; |