diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-20 10:48:20 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-20 10:48:20 +0000 |
commit | 2e131bd3cbb2acb6ef52e7ad85f354ede543a392 (patch) | |
tree | 273b131f076989d6e7bf2f9b6b2a1cf07fcceba9 /src/scripting/lua.cpp | |
parent | dde3886a5067d1b49ac8ad50383c388f469978b3 (diff) | |
download | manaserv-2e131bd3cbb2acb6ef52e7ad85f354ede543a392.tar.gz manaserv-2e131bd3cbb2acb6ef52e7ad85f354ede543a392.tar.bz2 manaserv-2e131bd3cbb2acb6ef52e7ad85f354ede543a392.tar.xz manaserv-2e131bd3cbb2acb6ef52e7ad85f354ede543a392.zip |
Defined two helper functions to abstract away money being available under
inventory index 0.
Diffstat (limited to 'src/scripting/lua.cpp')
-rw-r--r-- | src/scripting/lua.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index 8c872c49..6e30dbe0 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -48,9 +48,14 @@ extern "C" { class LuaScript: public Script { public: - + /** + * Constructor. + */ LuaScript(); + /** + * Destructor. + */ ~LuaScript(); void load(char const *); @@ -440,7 +445,8 @@ void LuaScript::load(char const *prog) return; } - // A Lua chunk is like a function, so "execute" it in order to initialize it. + // A Lua chunk is like a function, so "execute" it in order to initialize + // it. res = lua_pcall(mState, 0, 0, 0); if (res) { |