(svn r7558) -Fix (FS#464): do not wait till a crashed vehicle is removed before starting to load other vehicles.
authorrubidium
Mon, 25 Dec 2006 16:14:36 +0000
changeset 5373 76b34570cfdd
parent 5372 6d6a97f86b6b
child 5374 4510e8944ed0
(svn r7558) -Fix (FS#464): do not wait till a crashed vehicle is removed before starting to load other vehicles.
economy.c
--- a/economy.c	Mon Dec 25 09:50:56 2006 +0000
+++ b/economy.c	Mon Dec 25 16:14:36 2006 +0000
@@ -1272,7 +1272,7 @@
 	FOR_ALL_VEHICLES(x) {
 		if ((x->type != VEH_Train || IsFrontEngine(x)) && // for all locs
 				u->last_station_visited == x->last_station_visited && // at the same station
-				!(x->vehstatus & VS_STOPPED) && // not stopped
+				!(x->vehstatus & (VS_STOPPED | VS_CRASHED)) && // not stopped or crashed
 				x->current_order.type == OT_LOADING && // loading
 				u != x) { // not itself
 			bool other_has_any_cargo = false;