summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-05-13 17:14:05 -0400
committerJared Adams <jaxad0127@gmail.com>2009-05-13 15:19:45 -0600
commitabb8b0a2cd5577cce954f638dca5fa3f371391fb (patch)
treeabe614224b7cc563bd1febb9e02a416016873b16 /src/map/clif.c
parenta60768f84c1e4fcf321208b39443fe01254f376c (diff)
downloadtmwa-abb8b0a2cd5577cce954f638dca5fa3f371391fb.tar.gz
tmwa-abb8b0a2cd5577cce954f638dca5fa3f371391fb.tar.bz2
tmwa-abb8b0a2cd5577cce954f638dca5fa3f371391fb.tar.xz
tmwa-abb8b0a2cd5577cce954f638dca5fa3f371391fb.zip
Cleans up the net code for effects
Removes the 0x1f3 packet since its the same as 0x19b packet, and our client doesn't handle 0x1f3.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index e053357..aa0fff9 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -2564,22 +2564,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
*------------------------------------------
@@ -6082,9 +6066,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 +6082,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;