summaryrefslogtreecommitdiff
path: root/roadveh_cmd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-05-06 12:00:25 +0000
committercelestar <celestar@openttd.org>2005-05-06 12:00:25 +0000
commit3e0028c0dfdbea55f9edc6f8f503a2530cecbcdd (patch)
treedf37ae19437a28191212e53f2710d77f2ef08e1c /roadveh_cmd.c
parent3f83bba96ee2cd433a1b6184d4b0db52bf286df9 (diff)
downloadopenttd-3e0028c0dfdbea55f9edc6f8f503a2530cecbcdd.tar.xz
(svn r2273) -Fix: Road vehicles no longer try to obtain a slot when they have crashed. (peter1138)
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r--roadveh_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c
index 64ba65548..7cc09504e 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;