From 3e0028c0dfdbea55f9edc6f8f503a2530cecbcdd Mon Sep 17 00:00:00 2001 From: celestar Date: Fri, 6 May 2005 12:00:25 +0000 Subject: [PATCH] (svn r2273) -Fix: Road vehicles no longer try to obtain a slot when they have crashed. (peter1138) --- roadveh_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roadveh_cmd.c b/roadveh_cmd.c index 64ba655483..7cc09504e5 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -1634,7 +1634,7 @@ void OnNewDay_RoadVeh(Vehicle *v) CheckOrders(v->index, OC_INIT); /* update destination */ - if (v->current_order.type == OT_GOTO_STATION) { + if (v->current_order.type == OT_GOTO_STATION && !(v->vehstatus & VS_CRASHED)) { RoadStop *rs; uint32 mindist = 0xFFFFFFFF; int num;