summaryrefslogtreecommitdiff
path: root/src/order_cmd.cpp
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
commitef1bf22d596b6b63740acb56538c3d741e2ce18e (patch)
treefaa3f21beffa527664980465d0859af5b0bbe2fc /src/order_cmd.cpp
parent3f7327fcb2f099c96fb0655de5198981a71cedd9 (diff)
downloadopenttd-ef1bf22d596b6b63740acb56538c3d741e2ce18e.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.
Diffstat (limited to 'src/order_cmd.cpp')
-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;
}