From 3cab86bc3abf5bceaf8dde8c7b980049b48702aa Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Thu, 20 May 2010 23:57:34 +0200 Subject: Removed unused parameter from being_get_speed Lua function Also updated the link to the documentation and fixed the documentation for being_set_speed. --- src/scripting/lua.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/scripting/lua.cpp') diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index dbd50776..86bf38f8 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -55,7 +55,7 @@ extern "C" { * This file includes all script bindings available to LUA scripts. * When you add or change a script binding please document it on * - * http://wiki.themanaworld.org/index.php/Scripting + * http://doc.manasource.org/scripting */ @@ -566,11 +566,11 @@ static int being_set_status_time(lua_State *s) /** * Returns the current speed of the being -* mana.being_get_speed(Being *being, int id) +* mana.being_get_speed(Being *being) */ static int being_get_speed(lua_State *s) { - if (!lua_isuserdata(s, 1) || !lua_isnumber(s, 2)) + if (!lua_isuserdata(s, 1)) { raiseScriptError(s, "being_get_speed called with incorrect parameters."); return 0; @@ -582,7 +582,7 @@ static int being_get_speed(lua_State *s) /** * Sets the speed of the being -* mana.being_set_speed(Being *being) +* mana.being_set_speed(Being *being, float speed) */ static int being_set_speed(lua_State *s) { -- cgit v1.2.3-70-g09d2