summaryrefslogtreecommitdiff
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
commit61ca460457b524d1d6b8e71d92b5b0b68f9f6281 (patch)
treedf37ae19437a28191212e53f2710d77f2ef08e1c
parent69a09c6f7729449f34b3f43824ed0b9166a83370 (diff)
downloadopenttd-61ca460457b524d1d6b8e71d92b5b0b68f9f6281.tar.xz
(svn r2273) -Fix: Road vehicles no longer try to obtain a slot when they have crashed. (peter1138)
-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;