changeset 4529 | 2bfac24af02a |
parent 4527 | b18634a31a4a |
child 4544 | b2d5ad597e4d |
--- a/roadveh_cmd.c Sun Sep 03 10:30:38 2006 +0000 +++ b/roadveh_cmd.c Sun Sep 03 11:49:38 2006 +0000 @@ -1640,6 +1640,11 @@ // If we already got a slot at a stop, use that FIRST, and go to a depot later if (v->u.road.slot != NULL) return; + if (IsRoadVehInDepot(v)) { + VehicleServiceInDepot(v); + return; + } + // XXX If we already have a depot order, WHY do we search over and over? depot = FindClosestRoadDepot(v);