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

pull/155/head
rubidium 18 years ago
parent df59f5cd15
commit 84c27fc773

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

Loading…
Cancel
Save