# HG changeset patch # User celestar # Date 2005-05-06 12:00:25 # Node ID 1caffb18366e4bdaf09d0ce8a8145438a9cd0fe4 # Parent f35523cc7e85e073ebe3dabe388ae1bad01a4989 (svn r2273) -Fix: Road vehicles no longer try to obtain a slot when they have crashed. (peter1138) diff --git a/roadveh_cmd.c b/roadveh_cmd.c --- 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;