1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 17:39:09 +00:00

(svn r9833) -Fix: also 'leave' the station when leaving for automatic servicing.

This commit is contained in:
rubidium
2007-05-14 08:07:20 +00:00
parent e72ab0fdf5
commit 42f920964b
3 changed files with 5 additions and 0 deletions

View File

@@ -1686,6 +1686,9 @@ static void CheckIfRoadVehNeedsService(Vehicle *v)
return;
}
if (v->current_order.type == OT_LOADING) v->LeaveStation();
ClearSlot(v);
v->current_order.type = OT_GOTO_DEPOT;
v->current_order.flags = OF_NON_STOP;
v->current_order.dest = depot->index;