Add console command to set NewGRF optimiser flags

This commit is contained in:
Jonathan G Rennison
2022-06-04 02:04:57 +01:00
parent e5ef888e80
commit e49d0b3f29
3 changed files with 39 additions and 0 deletions

View File

@@ -158,6 +158,10 @@ byte NetworkSpectatorCount()
return count;
}
uint NetworkClientCount() {
return (uint)NetworkClientInfo::GetNumItems();
}
/**
* Change the company password of a given company.
* @param company_id ID of the company the password should be changed for.

View File

@@ -37,6 +37,7 @@ extern StringList _network_host_list;
extern StringList _network_ban_list;
byte NetworkSpectatorCount();
uint NetworkClientCount();
bool NetworkIsValidClientName(const std::string_view client_name);
bool NetworkValidateOurClientName();
bool NetworkValidateClientName(std::string &client_name);