equal
deleted
inserted
replaced
109 if (v->current_order.type == OT_GOTO_DEPOT && |
109 if (v->current_order.type == OT_GOTO_DEPOT && |
110 v->current_order.flags & OF_HALT_IN_DEPOT) |
110 v->current_order.flags & OF_HALT_IN_DEPOT) |
111 return; |
111 return; |
112 |
112 |
113 if (_patches.gotodepot && VehicleHasDepotOrders(v)) return; |
113 if (_patches.gotodepot && VehicleHasDepotOrders(v)) return; |
|
114 |
|
115 if (IsShipInDepot(v)) { |
|
116 VehicleServiceInDepot(v); |
|
117 return; |
|
118 } |
114 |
119 |
115 depot = FindClosestShipDepot(v); |
120 depot = FindClosestShipDepot(v); |
116 |
121 |
117 if (depot == NULL || DistanceManhattan(v->tile, depot->xy) > 12) { |
122 if (depot == NULL || DistanceManhattan(v->tile, depot->xy) > 12) { |
118 if (v->current_order.type == OT_GOTO_DEPOT) { |
123 if (v->current_order.type == OT_GOTO_DEPOT) { |