From 89d430b2c4d770d7d5c073710a21bd24df5f3f0c Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 3 Jun 2007 14:43:34 +0000 Subject: - Fixed missing client update when 'return to savepoint' fails - Fixed a bad copy-paste from r10028 letting players escape jail (char was dead on login, so statuses (SC_JAILED) couln't be applied) - Added clif_standing() to clif_sitting(), and used them in clif.c - Cleaned up clif.c a bit - clif_clearchar->clif_clearunit_area, clif_clearchar_id->clif_clearunit_single git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10668 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index 03ef54007..2afd9421b 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -126,7 +126,7 @@ int npc_enable(const char* name, int flag) if (nd->class_ == WARP_CLASS || nd->class_ == FLAG_CLASS) { //Client won't display option changes for these classes [Toms] if (nd->sc.option&(OPTION_HIDE|OPTION_INVISIBLE)) - clif_clearchar(&nd->bl, 0); + clif_clearunit_area(&nd->bl, 0); else clif_spawn(&nd->bl); } else @@ -156,7 +156,7 @@ int npc_event_dequeue(struct map_session_data* sd) if(sd->npc_id) { //Current script is aborted. if(sd->state.using_fake_npc){ - clif_clearchar_id(sd->npc_id, 0, sd->fd); + clif_clearunit_single(sd->npc_id, 0, sd->fd); sd->state.using_fake_npc = 0; } if (sd->st) { @@ -1443,7 +1443,7 @@ int npc_remove_map(struct npc_data* nd) #ifdef PCRE_SUPPORT npc_chat_finalize(nd); #endif - clif_clearchar_area(&nd->bl,2); + clif_clearunit_area(&nd->bl,2); strdb_remove(npcname_db, (nd->bl.subtype < SCRIPT) ? nd->name : nd->exname); //Remove corresponding NPC CELLs if (nd->bl.subtype == WARP) { -- cgit v1.2.3-60-g2f50