diff options
author | Fate <fate-tmw@googlemail.com> | 2009-05-14 02:24:49 +0000 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2009-05-14 02:24:49 +0000 |
commit | f5f588157c209bc90f7c9f14ec4ed1403fdd1ee7 (patch) | |
tree | 0f2717916a49ae9e0d24ba041482f15c5118a727 /src/map/clif.c | |
parent | 92c1c98824efb789709d70ee8d6d5ed6e49b47a3 (diff) | |
parent | 94a8a08118ecd9e358d794d430945ada248d0959 (diff) | |
download | tmwa-f5f588157c209bc90f7c9f14ec4ed1403fdd1ee7.tar.gz tmwa-f5f588157c209bc90f7c9f14ec4ed1403fdd1ee7.tar.bz2 tmwa-f5f588157c209bc90f7c9f14ec4ed1403fdd1ee7.tar.xz tmwa-f5f588157c209bc90f7c9f14ec4ed1403fdd1ee7.zip |
Merge branch 'master' of git@gitorious.org:tmw-eathena/mainline
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 40 |
1 files changed, 12 insertions, 28 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index e053357..e5fa002 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -676,6 +676,7 @@ int clif_clearchar_id(int id, int type, int fd) { return 0; } +/* static int current_weapon(struct map_session_data *sd) { if (sd->attack_spell_override) @@ -684,6 +685,7 @@ static int current_weapon(struct map_session_data *sd) return sd->status.weapon; } } +*/ /*========================================== * @@ -2564,22 +2566,6 @@ int clif_misceffect(struct block_list* bl,int type) return 0; } -int clif_misceffect2(struct block_list *bl, int type) { - unsigned char buf[24]; - - nullpo_retr(0, bl); - - memset(buf, 0, packet_len_table[0x1f3]); - - WBUFW(buf,0) = 0x1f3; - WBUFL(buf,2) = bl->id; - WBUFL(buf,6) = type; - - clif_send(buf, packet_len_table[0x1f3], bl, AREA); - - return 0; - -} /*========================================== * �\���I�v�V�����ύX *------------------------------------------ @@ -3064,7 +3050,7 @@ int clif_updatestorageamount(struct map_session_data *sd,struct storage *stor) */ int clif_storageitemadded(struct map_session_data *sd,struct storage *stor,int index,int amount) { - int view,fd,j; + int fd,j; nullpo_retr(0, sd); nullpo_retr(0, stor); @@ -3272,8 +3258,8 @@ void clif_getareachar_pc(struct map_session_data* sd,struct map_session_data* ds if(sd->status.manner < 0) clif_changestatus(&sd->bl,SP_MANNER,sd->status.manner); - clif_changelook_accessories(sd, dstsd); - clif_changelook_accessories(dstsd, sd); + clif_changelook_accessories(&sd->bl, dstsd); + clif_changelook_accessories(&dstsd->bl, sd); } /*========================================== @@ -3359,7 +3345,7 @@ int clif_fixpcpos(struct map_session_data *sd) len = clif_set0078(sd,buf); clif_send(buf,len,&sd->bl,AREA); } - clif_changelook_accessories(sd, NULL); + clif_changelook_accessories(&sd->bl, NULL); return 0; } @@ -6082,9 +6068,9 @@ int clif_specialeffect(struct block_list *bl, int type, int flag) { nullpo_retr(0, bl); - memset(buf, 0, packet_len_table[0x1f3]); + memset(buf, 0, packet_len_table[0x19b]); - WBUFW(buf,0) = 0x1f3; + WBUFW(buf,0) = 0x19b; WBUFL(buf,2) = bl->id; WBUFL(buf,6) = type; @@ -6098,9 +6084,9 @@ int clif_specialeffect(struct block_list *bl, int type, int flag) { } else if (flag==1) - clif_send(buf, packet_len_table[0x1f3], bl, SELF); + clif_send(buf, packet_len_table[0x19b], bl, SELF); else if (!flag) - clif_send(buf, packet_len_table[0x1f3], bl, AREA); + clif_send(buf, packet_len_table[0x19b], bl, AREA); return 0; @@ -6429,9 +6415,7 @@ void clif_parse_GetCharNameRequest(int fd, struct map_session_data *sd) { WFIFOSET(fd,packet_len_table[0x95]); if (ssd->special_state.heal_effect) { - unsigned char buf[16]; - - nullpo_retr(0, bl); + nullpo_retv(bl); WFIFOW(fd,0)=0x0196; WFIFOW(fd,2)=SC_HEALING; @@ -6600,7 +6584,7 @@ void clif_parse_ChangeDir(int fd, struct map_session_data *sd) { nullpo_retv(sd); - RFIFOW(fd,2); //skip +// RFIFOW(fd,2); // Apparently does nothing? dir = RFIFOB(fd,4); pc_setdir(sd, dir); |