File diff r23952:2d92a4a7c152 → r23953:ba75d2f3b530
src/ai/ai_core.cpp
Show inline comments
 
@@ -75,8 +75,7 @@
 
	if ((AI::frame_counter & ((1 << (4 - _settings_game.difficulty.competitor_speed)) - 1)) != 0) return;
 

	
 
	Backup<CompanyID> cur_company(_current_company, FILE_LINE);
 
	const Company *c;
 
	FOR_ALL_COMPANIES(c) {
 
	for (const Company *c : Company::Iterate()) {
 
		if (c->is_ai) {
 
			PerformanceMeasurer framerate((PerformanceElement)(PFE_AI0 + c->index));
 
			cur_company.Change(c->index);
 
@@ -154,8 +153,7 @@
 
	/* It might happen there are no companies .. than we have nothing to loop */
 
	if (Company::GetPoolSize() == 0) return;
 

	
 
	const Company *c;
 
	FOR_ALL_COMPANIES(c) {
 
	for (const Company *c : Company::Iterate()) {
 
		if (c->is_ai) AI::Stop(c->index);
 
	}
 
}