summaryrefslogtreecommitdiff
path: root/src/order_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-02 22:53:05 +0000
committerrubidium <rubidium@openttd.org>2008-08-02 22:53:05 +0000
commit0dfaa88c1e9789cdfc225774b46f121386c31456 (patch)
tree2236ebe6ed7e00e4b78a91ce8819d27dde9166f3 /src/order_cmd.cpp
parenta706766690b78502e9bef9348128eb46038f5f41 (diff)
downloadopenttd-0dfaa88c1e9789cdfc225774b46f121386c31456.tar.xz
(svn r13949) -Codechange [YAPP]: Declare the functions for processing conditional orders as non-static. (michi_cc)
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r--src/order_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index df84553ed..07154ee1f 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -1667,7 +1667,7 @@ static bool OrderConditionCompare(OrderConditionComparator occ, int variable, in
* @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 @@ static VehicleOrderID ProcessConditionalOrder(const Order *order, const Vehicle
* @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: