# HG changeset patch # User rubidium # Date 1217717585 0 # Node ID 6c47b0584f512f311a134f169f31bc0523f7fda0 # Parent 5d8e73afcf1f13510f76d0d393e016ef1e331ccb (svn r13949) -Codechange [YAPP]: Declare the functions for processing conditional orders as non-static. (michi_cc) diff -r 5d8e73afcf1f -r 6c47b0584f51 src/order_cmd.cpp --- a/src/order_cmd.cpp Sat Aug 02 22:52:50 2008 +0000 +++ b/src/order_cmd.cpp Sat Aug 02 22:53:05 2008 +0000 @@ -1667,7 +1667,7 @@ * @param v the vehicle to update * @return index of next order to jump to, or INVALID_VEH_ORDER_ID to use the next order */ -static VehicleOrderID ProcessConditionalOrder(const Order *order, const Vehicle *v) +VehicleOrderID ProcessConditionalOrder(const Order *order, const Vehicle *v) { if (order->GetType() != OT_CONDITIONAL) return INVALID_VEH_ORDER_ID; @@ -1693,7 +1693,7 @@ * @param order the order the vehicle currently has * @param v the vehicle to update */ -static bool UpdateOrderDest(Vehicle *v, const Order *order, int conditional_depth = 0) +bool UpdateOrderDest(Vehicle *v, const Order *order, int conditional_depth) { switch (order->GetType()) { case OT_GOTO_STATION: diff -r 5d8e73afcf1f -r 6c47b0584f51 src/order_func.h --- a/src/order_func.h Sat Aug 02 22:52:50 2008 +0000 +++ b/src/order_func.h Sat Aug 02 22:53:05 2008 +0000 @@ -37,6 +37,8 @@ void CheckOrders(const Vehicle*); void DeleteVehicleOrders(Vehicle *v); bool ProcessOrders(Vehicle *v); +bool UpdateOrderDest(Vehicle *v, const Order *order, int conditional_depth = 0); +VehicleOrderID ProcessConditionalOrder(const Order *order, const Vehicle *v); void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int y, bool selected, bool timetable, int width);