diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-03-03 22:58:34 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-03-03 23:22:43 +0100 |
commit | f08b62e1a0b9719bb03fd0db89353f69f0680def (patch) | |
tree | acdec3cb220802c36169df43f4c9dabd1b6bdc88 /src/scripting/luascript.h | |
parent | 72881e2a713a29fc7eaaa1d7159129e0e4f9867f (diff) | |
download | manaserv-f08b62e1a0b9719bb03fd0db89353f69f0680def.tar.gz manaserv-f08b62e1a0b9719bb03fd0db89353f69f0680def.tar.bz2 manaserv-f08b62e1a0b9719bb03fd0db89353f69f0680def.tar.xz manaserv-f08b62e1a0b9719bb03fd0db89353f69f0680def.zip |
Removed the last direct call to global script function
The ScriptAction of the TriggerArea (which can be created by
mana.trigger_create) was still using a named global function for its
callback. Now it also uses a reference to a script function.
Since it was the last occurrence of a call to a global script function,
I've also removed the Script::prepare(std::string) overload.
Reviewed-by: Erik Schilling
Mantis-issue: 299
Diffstat (limited to 'src/scripting/luascript.h')
-rw-r--r-- | src/scripting/luascript.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/scripting/luascript.h b/src/scripting/luascript.h index ecd249ae..6ea44bac 100644 --- a/src/scripting/luascript.h +++ b/src/scripting/luascript.h @@ -46,8 +46,6 @@ class LuaScript : public Script void prepare(Ref function); - void prepare(const std::string &); - void push(int); void push(const std::string &); @@ -86,7 +84,6 @@ class LuaScript : public Script private: lua_State *mState; int nbArgs; - std::string mCurFunction; static Ref mQuestReplyCallback; static Ref mPostReplyCallback; |