summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)