diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-05-20 23:57:34 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-05-20 23:59:54 +0200 |
commit | 3cab86bc3abf5bceaf8dde8c7b980049b48702aa (patch) | |
tree | 896e67d998d9f0b8b7c40597fa37eb56ca88c6cb /src/scripting | |
parent | 889c87d6dd9cfa939a8cea6fbb4f34a10310aabe (diff) | |
download | manaserv-3cab86bc3abf5bceaf8dde8c7b980049b48702aa.tar.gz manaserv-3cab86bc3abf5bceaf8dde8c7b980049b48702aa.tar.bz2 manaserv-3cab86bc3abf5bceaf8dde8c7b980049b48702aa.tar.xz manaserv-3cab86bc3abf5bceaf8dde8c7b980049b48702aa.zip |
Removed unused parameter from being_get_speed Lua function
Also updated the link to the documentation and fixed the documentation
for being_set_speed.
Diffstat (limited to 'src/scripting')
-rw-r--r-- | src/scripting/lua.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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) { |