equal
deleted
inserted
replaced
164 |
164 |
165 if (!IsStationIndex(new_order.station)) return CMD_ERROR; |
165 if (!IsStationIndex(new_order.station)) return CMD_ERROR; |
166 st = GetStation(new_order.station); |
166 st = GetStation(new_order.station); |
167 |
167 |
168 if (!IsValidStation(st) || |
168 if (!IsValidStation(st) || |
169 (st->airport_type != AT_OILRIG && !CheckOwnership(st->owner))) { |
169 (st->airport_type != AT_OILRIG && !(st->had_vehicle_of_type & HVOT_BUOY) && !CheckOwnership(st->owner))) { |
170 return CMD_ERROR; |
170 return CMD_ERROR; |
171 } |
171 } |
172 |
172 |
173 switch (v->type) { |
173 switch (v->type) { |
174 case VEH_Train: |
174 case VEH_Train: |