(svn r15462) -Change [NoAI]: Make AIController::GetTick() and AIController::GetSetting() static functions.

-Fix (r15460): ai_controller.hpp.sq was forgotten.
This commit is contained in:
yexo
2009-02-13 00:18:56 +00:00
parent 806807e16b
commit 4c7106dad7
3 changed files with 10 additions and 10 deletions

View File

@@ -56,12 +56,12 @@ AIController::~AIController()
this->loaded_library.clear();
}
uint AIController::GetTick()
/* static */ uint AIController::GetTick()
{
return this->ticks;
return ::GetCompany(_current_company)->ai_instance->GetController()->ticks;
}
int AIController::GetSetting(const char *name)
/* static */ int AIController::GetSetting(const char *name)
{
return AIConfig::GetConfig(_current_company)->GetSetting(name);
}