diff options
author | smatz <smatz@openttd.org> | 2009-05-22 15:23:47 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-22 15:23:47 +0000 |
commit | 10d1ef5447b94d17024dc0f4bdd1b7b017431a23 (patch) | |
tree | a9563d19933124547ccd3d6c0e53c44876bdc144 /src/company_cmd.cpp | |
parent | 62a7948af0ca9eb3b190a54918201e1075edcbbc (diff) | |
download | openttd-10d1ef5447b94d17024dc0f4bdd1b7b017431a23.tar.xz |
(svn r16379) -Codechange: remove GetNumTowns(), GetNumIndustries() and GetActiveCompanyCount(), use PoolItem::GetNumItems() instead
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r-- | src/company_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index 504ea3875..8bb7f2646 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -469,7 +469,7 @@ void StartupCompanies() static void MaybeStartNewCompany() { #ifdef ENABLE_NETWORK - if (_networking && ActiveCompanyCount() >= _settings_client.network.max_companies) return; + if (_networking && Company::GetNumItems() >= _settings_client.network.max_companies) return; #endif /* ENABLE_NETWORK */ Company *c; |