(svn r19544) -Feature [FS#3496]: add an input box to the AI Debug window where you can input a break string (patch by Zuu)

This commit is contained in:
yexo
2010-04-02 17:35:20 +00:00
parent ed31c92fe0
commit cdfe7f7834
7 changed files with 166 additions and 4 deletions

View File

@@ -108,6 +108,17 @@
DeleteWindowById(WC_AI_SETTINGS, company);
}
/* static */ void AI::Suspend(CompanyID company)
{
if (_networking && !_network_server) return;
CompanyID old_company = _current_company;
_current_company = company;
Company::Get(company)->ai_instance->Suspend();
_current_company = old_company;
}
/* static */ void AI::KillAll()
{
/* It might happen there are no companies .. than we have nothing to loop */