From 4e9e0ac87b4dc16f19ac4f930d52c4cc0a2c6f64 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Wed, 21 Mar 2012 19:44:11 +0100 Subject: Changed NPC to an NpcComponent added to a Being --- src/scripting/luautil.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/scripting/luautil.cpp') diff --git a/src/scripting/luautil.cpp b/src/scripting/luautil.cpp index 6210eda..24e9edf 100644 --- a/src/scripting/luautil.cpp +++ b/src/scripting/luautil.cpp @@ -188,14 +188,14 @@ MonsterClass *getMonsterClass(lua_State *s, int p) return monsterClass; } -NPC *getNPC(lua_State *s, int p) +Being *getNpc(lua_State *s, int p) { if (!lua_islightuserdata(s, p)) return 0; Entity *t = static_cast(lua_touserdata(s, p)); if (t->getType() != OBJECT_NPC) return 0; - return static_cast(t); + return static_cast(t); } @@ -234,9 +234,9 @@ MonsterClass *checkMonsterClass(lua_State *s, int p) return monsterClass; } -NPC *checkNPC(lua_State *s, int p) +Being *checkNpc(lua_State *s, int p) { - NPC *npc = getNPC(s, p); + Being *npc = getNpc(s, p); luaL_argcheck(s, npc, p, "npc expected"); return npc; } -- cgit