equal
deleted
inserted
replaced
163 InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); |
163 InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); |
164 } |
164 } |
165 return; |
165 return; |
166 } |
166 } |
167 |
167 |
|
168 if (v->current_order.type == OT_LOADING) v->LeaveStation(); |
168 v->current_order.type = OT_GOTO_DEPOT; |
169 v->current_order.type = OT_GOTO_DEPOT; |
169 v->current_order.flags = OF_NON_STOP; |
170 v->current_order.flags = OF_NON_STOP; |
170 v->current_order.dest = depot->index; |
171 v->current_order.dest = depot->index; |
171 v->dest_tile = depot->xy; |
172 v->dest_tile = depot->xy; |
172 InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); |
173 InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); |