MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / NetworkMaxCompaniesReached

Function NetworkMaxCompaniesReached

src/network/network_client.cpp:1356–1359  ·  view source on GitHub ↗

* Check if max_companies has been reached on the server (local check only). * @return true if the max value has been reached or exceeded, false otherwise. */

Source from the content-addressed store, hash-verified

1354 * @return true if the max value has been reached or exceeded, false otherwise.
1355 */
1356bool NetworkMaxCompaniesReached()
1357{
1358 return Company::GetNumItems() >= NetworkMaxCompaniesAllowed();
1359}

Callers 1

RebuildListMethod · 0.85

Calls 1

Tested by

no test coverage detected