(svn r9756) -Fix [FS#755]: LeaveStation wasn't always called when a station was left.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 18 years ago
parent ec9ac99d01
commit cbd9a1bf0d

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

Loading…
Cancel
Save