summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-06 17:08:19 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-06 17:08:19 -0600
commite4b494e5b6540c88c597c67df114c0328ea9d7b7 (patch)
tree6e08c43011662e6f83d1eabcefc949d6e680616f
parent36a2e1945e4c27e438a1bce6e286691a60ed7adf (diff)
downloadtmwa-e4b494e5b6540c88c597c67df114c0328ea9d7b7.tar.gz
tmwa-e4b494e5b6540c88c597c67df114c0328ea9d7b7.tar.bz2
tmwa-e4b494e5b6540c88c597c67df114c0328ea9d7b7.tar.xz
tmwa-e4b494e5b6540c88c597c67df114c0328ea9d7b7.zip
Remove some stuff from direction change packets
-rw-r--r--src/map/clif.c8
-rw-r--r--src/map/pc.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 3cece43..455f7cc 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -6611,18 +6611,18 @@ void clif_parse_MapMove(int fd, struct map_session_data *sd) {
*/
void clif_parse_ChangeDir(int fd, struct map_session_data *sd) {
unsigned char buf[64];
- short headdir, dir;
+ short dir;
nullpo_retv(sd);
- headdir = RFIFOW(fd,2);
+ RFIFOW(fd,2); //skip
dir = RFIFOB(fd,4);
- pc_setdir(sd, dir, headdir);
+ pc_setdir(sd, dir);
WBUFW(buf,0) = 0x9c;
WBUFL(buf,2) = sd->bl.id;
- WBUFW(buf,6) = headdir;
+ WBUFW(buf,6) = 0;
WBUFB(buf,8) = dir;
if (sd->disguise > 23 && sd->disguise < 4001) // mob disguises [Valaris]
clif_send(buf, packet_len_table[0x9c], &sd->bl, AREA);
diff --git a/src/map/pc.h b/src/map/pc.h
index 0c4141a..8ecbeb3 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -13,7 +13,7 @@
//#define pc_setstand(sd) ((sd)->state.dead_sit = 0)
#define pc_isdead(sd) ((sd)->state.dead_sit == 1)
#define pc_issit(sd) ((sd)->state.dead_sit == 2)
-#define pc_setdir(sd,b,h) ((sd)->dir = (b) ,(sd)->head_dir = (h) )
+#define pc_setdir(sd,b) ((sd)->dir = (b))
#define pc_setchatid(sd,n) ((sd)->chatID = n)
#define pc_ishiding(sd) ((sd)->status.option&0x4006)
#define pc_iscarton(sd) ((sd)->status.option&CART_MASK)