order_cmd.c
changeset 1733 7b74d376b184
parent 1718 96d76767ea93
child 1751 009a240d035a
equal deleted inserted replaced
1732:721e9434d6e3 1733:7b74d376b184
   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: