summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-19 20:58:30 +0000
committerrubidium <rubidium@openttd.org>2010-08-19 20:58:30 +0000
commit1fa98e169529b070c19a6bc0cff311ebc993b468 (patch)
tree6cd7011fc2faece6a110096a49f95ad5290c6e66 /src/script
parentcc658392ebef76ca21efc7c3ab1aaaa93c50448e (diff)
downloadopenttd-1fa98e169529b070c19a6bc0cff311ebc993b468.tar.xz
(svn r20574) -Codechange: a little over 1 million vehicles should be enough for the forseeable future
Diffstat (limited to 'src/script')
-rw-r--r--src/script/squirrel.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/script/squirrel.hpp b/src/script/squirrel.hpp
index 43aaa11fa..ec9871d72 100644
--- a/src/script/squirrel.hpp
+++ b/src/script/squirrel.hpp
@@ -89,6 +89,12 @@ public:
* Adds a const to the stack. Depending on the current state this means
* either a const to a class or to the global space.
*/
+ void AddConst(const char *var_name, uint value) { this->AddConst(var_name, (int)value); }
+
+ /**
+ * Adds a const to the stack. Depending on the current state this means
+ * either a const to a class or to the global space.
+ */
void AddConst(const char *var_name, bool value);
/**
@@ -126,6 +132,7 @@ public:
void InsertResult(bool result);
void InsertResult(int result);
+ void InsertResult(uint result) { this->InsertResult((int)result); }
/**
* Call a method of an instance, in various flavors.