summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-04-15 17:31:08 +0000
committerfrosch <frosch@openttd.org>2009-04-15 17:31:08 +0000
commiteb7414ea9ee1080cd34572a564d57da2d51655ff (patch)
tree50f9499b3fb5a2418f686074b11939fb4d4cc213 /src
parentf6ba4bf3bd2c1d44a1c368fa91ce793fd098e2ce (diff)
downloadopenttd-eb7414ea9ee1080cd34572a564d57da2d51655ff.tar.xz
(svn r16062) -Fix (r16037): AIOrder::InsertOrder was broken. Default all AI orders to 'stop at far end'.
Diffstat (limited to 'src')
-rw-r--r--src/ai/api/ai_order.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/api/ai_order.cpp b/src/ai/api/ai_order.cpp
index 2e901ea0a..72856946d 100644
--- a/src/ai/api/ai_order.cpp
+++ b/src/ai/api/ai_order.cpp
@@ -268,6 +268,7 @@ static OrderType GetOrderTypeByTile(TileIndex t)
order.MakeGoToStation(::GetStationIndex(destination));
order.SetLoadType((OrderLoadFlags)GB(order_flags, 5, 3));
order.SetUnloadType((OrderUnloadFlags)GB(order_flags, 2, 3));
+ order.SetStopLocation(OSL_PLATFORM_FAR_END);
break;
case OT_GOTO_WAYPOINT: