summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
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.