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/script_storage.hpp | |
parent | 403cd3acdb7b7fedf2b5e823326611bb32113385 (diff) | |
download | openttd-cc3f42794d134b9f4b6c7efecb07d4b3366887c1.tar.xz |
(svn r23632) -Add: GSCompanyMode, to change company in GameScripts
Diffstat (limited to 'src/script/script_storage.hpp')
-rw-r--r-- | src/script/script_storage.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/script_storage.hpp b/src/script/script_storage.hpp index 0af56b2b4..79de2de8f 100644 --- a/src/script/script_storage.hpp +++ b/src/script/script_storage.hpp @@ -34,6 +34,8 @@ friend class ScriptObject; private: ScriptModeProc *mode; ///< The current build mode we are int. class ScriptObject *mode_instance; ///< The instance belonging to the current build mode. + CompanyID root_company; ///< The root company, the company that the script really belongs to. + CompanyID company; ///< The current company. uint delay; ///< The ticks of delay each DoCommand has. bool allow_do_command; ///< Is the usage of DoCommands restricted? @@ -60,6 +62,8 @@ public: ScriptStorage() : mode (NULL), mode_instance (NULL), + root_company (INVALID_OWNER), + company (INVALID_OWNER), delay (1), allow_do_command (true), /* costs (can't be set) */ |