diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 21:05:25 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 21:05:25 +0000 |
commit | cc3f42794d134b9f4b6c7efecb07d4b3366887c1 (patch) | |
tree | 1cd422d47fc44bd59463d0f9e2ef96f2edb09b50 /src/script/api/script_log.cpp | |
parent | 403cd3acdb7b7fedf2b5e823326611bb32113385 (diff) | |
download | openttd-cc3f42794d134b9f4b6c7efecb07d4b3366887c1.tar.xz |
(svn r23632) -Add: GSCompanyMode, to change company in GameScripts
Diffstat (limited to 'src/script/api/script_log.cpp')
-rw-r--r-- | src/script/api/script_log.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/script/api/script_log.cpp b/src/script/api/script_log.cpp index f774c5d25..fc6a0b193 100644 --- a/src/script/api/script_log.cpp +++ b/src/script/api/script_log.cpp @@ -12,7 +12,6 @@ #include "../../stdafx.h" #include "script_log.hpp" #include "../../core/alloc_func.hpp" -#include "../../company_func.h" #include "../../debug.h" #include "../../window_func.h" @@ -74,8 +73,8 @@ } /* Also still print to debug window */ - DEBUG(script, level, "[%d] [%c] %s", (uint)_current_company, logc, log->lines[log->pos]); - InvalidateWindowData(WC_AI_DEBUG, 0, _current_company); + DEBUG(script, level, "[%d] [%c] %s", (uint)ScriptObject::GetRootCompany(), logc, log->lines[log->pos]); + InvalidateWindowData(WC_AI_DEBUG, 0, ScriptObject::GetRootCompany()); } /* static */ void ScriptLog::FreeLogPointer() |