summaryrefslogtreecommitdiff
path: root/src/scripting/luautil.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-05-13 15:17:38 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-21 16:50:48 +0200
commit4f6f59bfb33bb5814b5489a405074c900b5299ab (patch)
treede71d200978f1e4c5c169cd70a6fec5106cbcd7e /src/scripting/luautil.cpp
parent329a1c0a0896c05ffb6954883248cb87f82daa56 (diff)
downloadmanaserv-4f6f59bfb33bb5814b5489a405074c900b5299ab.tar.gz
manaserv-4f6f59bfb33bb5814b5489a405074c900b5299ab.tar.bz2
manaserv-4f6f59bfb33bb5814b5489a405074c900b5299ab.tar.xz
manaserv-4f6f59bfb33bb5814b5489a405074c900b5299ab.zip
Fixed an error message and inlined some one-liners
Diffstat (limited to 'src/scripting/luautil.cpp')
-rw-r--r--src/scripting/luautil.cpp23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/scripting/luautil.cpp b/src/scripting/luautil.cpp
index e753e1bc..3de23c77 100644
--- a/src/scripting/luautil.cpp
+++ b/src/scripting/luautil.cpp
@@ -247,7 +247,7 @@ int checkSkill(lua_State *s, int p)
return luaL_checkint(s, p);
int id = skillManager->getId(luaL_checkstring(s, p));
- luaL_argcheck(s, id != 0, p, "invalid special name");
+ luaL_argcheck(s, id != 0, p, "invalid skill name");
return id;
}
@@ -285,24 +285,3 @@ Script::Thread *checkCurrentThread(lua_State *s, Script *script /* = 0 */)
return thread;
}
-
-
-void push(lua_State *s, int val)
-{
- lua_pushinteger(s, val);
-}
-
-void push(lua_State *s, const std::string &val)
-{
- lua_pushstring(s, val.c_str());
-}
-
-void push(lua_State *s, Entity *val)
-{
- lua_pushlightuserdata(s, val);
-}
-
-void push(lua_State *s, double val)
-{
- lua_pushnumber(s, val);
-}