summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-12 22:40:56 +0000
committerrubidium <rubidium@openttd.org>2008-04-12 22:40:56 +0000
commited43ffe43559d6145960ca580f57cfacf04a4fd9 (patch)
treefaa3f21beffa527664980465d0859af5b0bbe2fc
parenta3e2d8f577aee76079319a5722f210889684ab79 (diff)
downloadopenttd-ed43ffe43559d6145960ca580f57cfacf04a4fd9.tar.xz
(svn r12678) -Fix [FS#1918]: when a road vehicle has a tram only stop multiple times in a row in it's orders, only the first one would be skipped.
-rw-r--r--src/order_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index bae55b75c..367ca290a 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -1644,7 +1644,7 @@ bool ProcessOrders(Vehicle *v)
}
/* If it is unchanged, keep it. */
- if (order->Equals(v->current_order) &&
+ if (order->Equals(v->current_order) && v->dest_tile != 0 &&
(v->type != VEH_SHIP || !order->IsType(OT_GOTO_STATION) || GetStation(order->GetDestination())->dock_tile != 0)) {
return false;
}