diff options
author | truebrain <truebrain@openttd.org> | 2011-11-29 23:26:44 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-11-29 23:26:44 +0000 |
commit | 4505edbd4715befb0944e91ad7f986a8ca83f113 (patch) | |
tree | 90fc3eee3172861db8b3243682e6f70fc52bccba /src/script/script_instance.cpp | |
parent | 34d7f01cccfbb4dcd09f0b68ded513f495fa69ed (diff) | |
download | openttd-4505edbd4715befb0944e91ad7f986a8ca83f113.tar.xz |
(svn r23365) -Codechange: move constants to a single place, to avoid duplication (and in time, different values)
Diffstat (limited to 'src/script/script_instance.cpp')
-rw-r--r-- | src/script/script_instance.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/script/script_instance.cpp b/src/script/script_instance.cpp index fa69932ce..beebe2fd7 100644 --- a/src/script/script_instance.cpp +++ b/src/script/script_instance.cpp @@ -18,6 +18,7 @@ #include "script_fatalerror.hpp" #include "script_storage.hpp" +#include "script_info.hpp" #include "script_instance.hpp" #include "api/script_controller.hpp" @@ -29,11 +30,6 @@ #include "../company_func.h" #include "../fileio_func.h" -/** The maximum number of operations for saving or loading the data of a script. */ -static const int MAX_SL_OPS = 100000; -/** The maximum number of operations for initial start of a script. */ -static const int MAX_CONSTRUCTOR_OPS = 100000; - ScriptStorage::~ScriptStorage() { /* Free our pointers */ |