(svn r16253) -Add [NoAI]: AIController::GetVersion, this returns the newgrf-version of OpenTTD

This commit is contained in:
yexo
2009-05-07 21:33:38 +00:00
parent 9b4a32deb4
commit a00b22b1cd
3 changed files with 19 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
#include "../../stdafx.h"
#include "../../string_func.h"
#include "../../company_base.h"
#include "../../rev.h"
#include "table/strings.h"
#include "../ai.hpp"
@@ -66,6 +67,11 @@ AIController::~AIController()
return AIConfig::GetConfig(_current_company)->GetSetting(name);
}
/* static */ uint AIController::GetVersion()
{
return _openttd_newgrf_version;
}
bool AIController::LoadedLibrary(const char *library_name, int *next_number, char *fake_class_name, int fake_class_name_len)
{
LoadedLibraryList::iterator iter = this->loaded_library.find(library_name);