From b89dd1428b2d357c8bbe016573fb0ab25ade2782 Mon Sep 17 00:00:00 2001 From: KirieZ Date: Mon, 11 Jul 2016 00:55:47 -0300 Subject: Fixes warp facing direction. Fixes #1240 Closes #1353 as merged --- src/map/pc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map/pc.c') 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] -- cgit v1.2.3-60-g2f50