diff options
author | Freeyorp <Freeyorp101@hotmail.com> | 2010-12-03 18:19:07 +1300 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2010-12-08 00:25:25 +0100 |
commit | d6d590fedaf928b3705d0a2876f0cebc69cb0f7d (patch) | |
tree | 66e0689d0fa3f5ef6b4387f15a5820c941fc7792 /src/scripting | |
parent | 0cad65eb467b2a8833949b42d21fa8737ec14a97 (diff) | |
download | manaserv-d6d590fedaf928b3705d0a2876f0cebc69cb0f7d.tar.gz manaserv-d6d590fedaf928b3705d0a2876f0cebc69cb0f7d.tar.bz2 manaserv-d6d590fedaf928b3705d0a2876f0cebc69cb0f7d.tar.xz manaserv-d6d590fedaf928b3705d0a2876f0cebc69cb0f7d.zip |
Fix return codes for many lua functions
Reviewed-by: Bertram
Diffstat (limited to 'src/scripting')
-rw-r--r-- | src/scripting/lua.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index 61d98357..e672c1a6 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -80,7 +80,7 @@ static int npc_message(lua_State *s) msg.writeInt16(p->getPublicID()); msg.writeString(std::string(m), l); gameHandler->sendTo(q, msg); - return 1; + return 0; } /** @@ -549,7 +549,7 @@ static int being_apply_status(lua_State *s) } Being *being = getBeing(s, 1); being->applyStatusEffect(id, time); - return 1; + return 0; } /** @@ -567,7 +567,7 @@ static int being_remove_status(lua_State *s) } Being *being = getBeing(s, 1); being->removeStatusEffect(id); - return 1; + return 0; } /** @@ -622,7 +622,7 @@ static int being_set_status_time(lua_State *s) } Being *being = getBeing(s, 1); being->setStatusEffectTime(id, time); - return 1; + return 0; } /** @@ -825,7 +825,7 @@ static int being_set_action(lua_State *s) being->setAction((Being::Action) act); } - return 1; + return 0; } /** @@ -859,7 +859,7 @@ static int being_set_direction(lua_State *s) being->setDirection(dir); } - return 1; + return 0; } /** |