From 1fa98e169529b070c19a6bc0cff311ebc993b468 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 19 Aug 2010 20:58:30 +0000 Subject: (svn r20574) -Codechange: a little over 1 million vehicles should be enough for the forseeable future --- src/script/squirrel.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/script/squirrel.hpp') 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 @@ -85,6 +85,12 @@ public: */ void AddConst(const char *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, 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. @@ -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. -- cgit v1.2.3-54-g00ecf