forked from mirror/OpenTTD
(svn r23368) -Codechange: move FindLibrary down a few layers, so there is no layer violation anymore
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "ai_config.hpp"
|
||||
#include "ai_gui.hpp"
|
||||
#include "ai.hpp"
|
||||
|
||||
#include "../script/script_fatalerror.hpp"
|
||||
#include "../script/script_suspend.hpp"
|
||||
@@ -240,6 +241,11 @@ int AIInstance::GetSetting(const char *name)
|
||||
return AIConfig::GetConfig(_current_company)->GetSetting(name);
|
||||
}
|
||||
|
||||
ScriptInfo *AIInstance::FindLibrary(const char *library, int version)
|
||||
{
|
||||
return (ScriptInfo *)AI::FindLibrary(library, version);
|
||||
}
|
||||
|
||||
/**
|
||||
* DoCommand callback function for all commands executed by AIs.
|
||||
* @param result The result of the command.
|
||||
|
Reference in New Issue
Block a user