Changeset - r10959:4b345c618e31
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-01-31 17:56:06
smatz@openttd.org
(svn r15298) -Fix [FS#2588]: don't start another AI company in MP when there are too many companies
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/company_cmd.cpp
Show inline comments
 
@@ -472,11 +472,14 @@ void StartupCompanies()
 

	
 
static void MaybeStartNewCompany()
 
{
 
	uint n;
 
#ifdef ENABLE_NETWORK
 
	if (_networking && ActiveCompanyCount() >= _settings_client.network.max_companies) return;
 
#endif /* ENABLE_NETWORK */
 

	
 
	Company *c;
 

	
 
	/* count number of competitors */
 
	n = 0;
 
	uint n = 0;
 
	FOR_ALL_COMPANIES(c) {
 
		if (c->is_ai) n++;
 
	}
0 comments (0 inline, 0 general)