summaryrefslogtreecommitdiff
path: root/src/order_base.h
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-08-20 21:22:35 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-08-20 21:22:35 +0000
commit5c0b766ed95bd2d5557e1fa05dfc199ced5a18bf (patch)
treecf2917557dbfd237ca2a70d66cb57023a446c970 /src/order_base.h
parentd8365c63fd56352f07418bd079a971c043fa13b8 (diff)
downloadopenttd-5c0b766ed95bd2d5557e1fa05dfc199ced5a18bf.tar.xz
(svn r25736) -Codechange: move condition prediction out of GetNextStoppingOrder so that we can access both branches in calling code
Diffstat (limited to 'src/order_base.h')
-rw-r--r--src/order_base.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/order_base.h b/src/order_base.h
index 7f8ce41f5..9965b9e5f 100644
--- a/src/order_base.h
+++ b/src/order_base.h
@@ -201,7 +201,7 @@ private:
friend void AfterLoadVehicles(bool part_of_load); ///< For instantiating the shared vehicle chain
friend const struct SaveLoad *GetOrderListDescription(); ///< Saving and loading of order lists.
- const Order *GetBestLoadableNext(const Vehicle *v, const Order *o1, const Order *o2) const;
+ StationID GetBestLoadableNext(const Vehicle *v, const Order *o1, const Order *o2) const;
Order *first; ///< First order of the order list.
VehicleOrderID num_orders; ///< NOSAVE: How many orders there are in the list.
@@ -263,8 +263,8 @@ public:
*/
inline VehicleOrderID GetNumManualOrders() const { return this->num_manual_orders; }
- StationID GetNextStoppingStation(const Vehicle *v) const;
- const Order *GetNextStoppingOrder(const Vehicle *v, const Order *next, uint hops, bool is_loading = false) const;
+ StationID GetNextStoppingStation(const Vehicle *v, const Order *first = NULL) const;
+ const Order *GetNextDecisionNode(const Order *next, uint hops) const;
void InsertOrderAt(Order *new_order, int index);
void DeleteOrderAt(int index);