summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-25 10:39:58 +0000
committerrubidium <rubidium@openttd.org>2009-07-25 10:39:58 +0000
commit4017439c37e661dbd694771106a8b29e9b860137 (patch)
tree246f39008b2a605aea760da2827bc586dedc2f87 /src/ai/api
parent7440ec7a7350051297439f58f30d63f02018a507 (diff)
downloadopenttd-4017439c37e661dbd694771106a8b29e9b860137.tar.xz
(svn r16948) -Codechange: some code reductions and usage of wrapper functions
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_order.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_order.cpp b/src/ai/api/ai_order.cpp
index aa91a539a..fcf1658fe 100644
--- a/src/ai/api/ai_order.cpp
+++ b/src/ai/api/ai_order.cpp
@@ -198,7 +198,7 @@ static const Order *ResolveOrder(VehicleID vehicle_id, AIOrder::OrderPosition or
}
return INVALID_TILE;
}
- case OT_GOTO_WAYPOINT: return v->type == VEH_TRAIN ? ::Waypoint::Get(order->GetDestination())->xy : ::Station::Get(order->GetDestination())->xy;
+ case OT_GOTO_WAYPOINT: return ::Waypoint::Get(order->GetDestination())->xy;
default: return INVALID_TILE;
}
}