changeset 8909:325d130fab50 draft

(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.
author rubidium <rubidium@openttd.org>
date Sat, 12 Apr 2008 22:40:56 +0000
parents 5e1a5d43cee7
children 70f154de6bb2
files src/order_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -1644,7 +1644,7 @@
 	}
 
 	/* 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;
 	}