diff options
author | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-20 17:33:07 +0000 |
---|---|---|
committer | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-12-20 17:33:07 +0000 |
commit | 871fb8a0c8e4d50409b9e0bd4dcc0deb9be70c8d (patch) | |
tree | 81f5db324a0311dfb34d1783fd5ab64089657889 /src/map | |
parent | d052e1dd288ca87f38a5ba5ac95ed881a4125b92 (diff) | |
download | hercules-871fb8a0c8e4d50409b9e0bd4dcc0deb9be70c8d.tar.gz hercules-871fb8a0c8e4d50409b9e0bd4dcc0deb9be70c8d.tar.bz2 hercules-871fb8a0c8e4d50409b9e0bd4dcc0deb9be70c8d.tar.xz hercules-871fb8a0c8e4d50409b9e0bd4dcc0deb9be70c8d.zip |
<Valaris> void clif_getareachar_npc(struct map_session_data* sd,struct npc_data* nd)
<Valaris> i missed the 7b packet send when i originally merged it into ea
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@661 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 26fa236a7..08dbaf4c6 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -3544,24 +3544,22 @@ void clif_getareachar_pc(struct map_session_data* sd,struct map_session_data* ds *------------------------------------------ */ void clif_getareachar_npc(struct map_session_data* sd,struct npc_data* nd) -{ int len; - nullpo_retv(sd); nullpo_retv(nd); - if(nd->class < 0 || nd->flag&1 || nd->class == INVISIBLE_CLASS) return; - + if(nd->state.state == MS_WALK){ + len = clif_npc007b(nd,WFIFOP(sd->fd,0)); + WFIFOSET(sd->fd,len); + } else { len = clif_npc0078(nd,WFIFOP(sd->fd,0)); WFIFOSET(sd->fd,len); - + } if(nd->chat_id){ clif_dispchat((struct chat_data*)map_id2bl(nd->chat_id),sd->fd); } - } - /*========================================== * ˆÚ“®’âŽ~ *------------------------------------------ |