summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-12-25 16:14:36 +0000
committerrubidium <rubidium@openttd.org>2006-12-25 16:14:36 +0000
commitec10c5bd40d1bed58947dc949311cb686b62d488 (patch)
tree49a462e8194d1f9ca83da2dfa88c7aebc39c83e4 /economy.c
parent2b1db5c2ae553d5b48646c0b3c5bbf130b51b469 (diff)
downloadopenttd-ec10c5bd40d1bed58947dc949311cb686b62d488.tar.xz
(svn r7558) -Fix (FS#464): do not wait till a crashed vehicle is removed before starting to load other vehicles.
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/economy.c b/economy.c
index 61dc1a20d..9ced54475 100644
--- a/economy.c
+++ b/economy.c
@@ -1272,7 +1272,7 @@ static bool LoadWait(const Vehicle* v, const Vehicle* u)
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;