if (company_id != INVALID_COMPANY) { if (company_id >= MAX_COMPANIES) return CMD_ERROR; if (ais_to_start != 1) return CMD_ERROR; if (Company::IsValidID(company_id)) return CMD_ERROR; }