| 949 | } |
| 950 | |
| 951 | static std::optional<CompanyID> ParseCompanyID(std::string_view arg) |
| 952 | { |
| 953 | auto company_id = ParseType<CompanyID>(arg); |
| 954 | if (company_id.has_value() && *company_id <= MAX_COMPANIES) return static_cast<CompanyID>(*company_id - 1); |
| 955 | return company_id; |
| 956 | } |
| 957 | |
| 958 | static bool ConJoinCompany(std::span<std::string_view> argv) |
| 959 | { |
no outgoing calls
no test coverage detected