From 4f6f59bfb33bb5814b5489a405074c900b5299ab Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 13 May 2012 15:17:38 +0200 Subject: Fixed an error message and inlined some one-liners --- src/scripting/luautil.cpp | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'src/scripting/luautil.cpp') diff --git a/src/scripting/luautil.cpp b/src/scripting/luautil.cpp index e753e1b..3de23c7 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); -} -- cgit