diff options
author | truebrain <truebrain@openttd.org> | 2011-11-29 23:26:52 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-11-29 23:26:52 +0000 |
commit | 3e6d0261291a1c91bf4f57c06fd9d180c175befc (patch) | |
tree | 11dcdfe79e138b991d531fa3d6955fdd99f5e428 /src/ai/ai_instance.cpp | |
parent | 4505edbd4715befb0944e91ad7f986a8ca83f113 (diff) | |
download | openttd-3e6d0261291a1c91bf4f57c06fd9d180c175befc.tar.xz |
(svn r23366) -Codechange: move most of the Dummy code to script/, unifying it
Diffstat (limited to 'src/ai/ai_instance.cpp')
-rw-r--r-- | src/ai/ai_instance.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp index 11459f649..2df8c2e44 100644 --- a/src/ai/ai_instance.cpp +++ b/src/ai/ai_instance.cpp @@ -229,6 +229,12 @@ void AIInstance::Died() } } +void AIInstance::LoadDummyScript() +{ + extern void Script_CreateDummy(HSQUIRRELVM vm, StringID string, const char *type); + Script_CreateDummy(this->engine->GetVM(), STR_ERROR_AI_NO_AI_FOUND, "AI"); +} + /** * DoCommand callback function for all commands executed by AIs. * @param result The result of the command. |