src/ship_cmd.cpp
changeset 7109 7d410365d6fc
parent 7104 59f24cd8470b
child 7179 3e123c2b7c93
equal deleted inserted replaced
7108:7ff0e571c766 7109:7d410365d6fc
   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);