diff options
author | KirieZ <guilherme_kiriez@hotmail.com> | 2016-07-11 00:55:47 -0300 |
---|---|---|
committer | hemagx <hemagx2@gmail.com> | 2016-07-14 04:54:09 +0200 |
commit | b89dd1428b2d357c8bbe016573fb0ab25ade2782 (patch) | |
tree | 9c32c567e7674b6a61884db8acbe14b3e2e1df22 /src/map/pc.c | |
parent | dc32fdce0284cc3ad9a6eb17fb98c58334453678 (diff) | |
download | hercules-b89dd1428b2d357c8bbe016573fb0ab25ade2782.tar.gz hercules-b89dd1428b2d357c8bbe016573fb0ab25ade2782.tar.bz2 hercules-b89dd1428b2d357c8bbe016573fb0ab25ade2782.tar.xz hercules-b89dd1428b2d357c8bbe016573fb0ab25ade2782.zip |
Fixes warp facing direction.
Fixes #1240
Closes #1353 as merged
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 2206dbb80..93470493a 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5580,6 +5580,8 @@ int pc_setpos(struct map_session_data* sd, unsigned short map_index, int x, int npc->script_event(sd, NPCE_LOGOUT); //remove from map, THEN change x/y coordinates unit->remove_map_pc(sd,clrtype); + if (battle_config.player_warp_keep_direction == 0) + sd->ud.dir = 0; // makes character face north sd->mapindex = map_index; sd->bl.x=x; sd->bl.y=y; @@ -5610,6 +5612,9 @@ int pc_setpos(struct map_session_data* sd, unsigned short map_index, int x, int vending->close(sd); } + if (battle_config.player_warp_keep_direction == 0) + sd->ud.dir = 0; // makes character face north + if(sd->bl.prev != NULL){ unit->remove_map_pc(sd,clrtype); clif->changemap(sd,m,x,y); // [MouseJstr] |