From 53167ad7742070c8dabc26e7fdc8beae507748a9 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Mon, 7 Jul 2008 20:14:20 +0000 Subject: changed function naming to be consistent with the rest of the script API and improved commenting. --- src/scripting/lua.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index 5a9364db..38f5cd25 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -726,7 +726,7 @@ static int LuaGetBeingsInCircle(lua_State *s) /** * Makes the server call the lua function deathEvent * with the being ID when the being dies. - * tmw.noteOnDeath (being) + * tmw.note_on_death (being) */ static int LuaNoteOnDeath(lua_State *s) { @@ -776,7 +776,7 @@ LuaScript::LuaScript(): { "trigger_create", &LuaTrigger_Create }, { "chatmessage", &LuaChatmessage }, { "get_beings_in_circle", &LuaGetBeingsInCircle}, - { "noteOnDeath", &LuaNoteOnDeath }, + { "note_on_death", &LuaNoteOnDeath }, { NULL, NULL } }; luaL_register(mState, "tmw", callbacks); @@ -867,7 +867,7 @@ void LuaScript::load(char const *prog) void LuaScript::processDeathEvent(Being *being) { - prepare("deathNotification"); + prepare("death_notification"); push(being); //TODO: get and push a list of creatures who contributed to killing the // being. This might be very interesting for scripting quests. -- cgit v1.2.3-60-g2f50