From f975f0a55ca930fd0f95a6209bea479ac9bc3a5d Mon Sep 17 00:00:00 2001 From: hemagx Date: Mon, 14 Dec 2015 01:43:10 +0200 Subject: Players now will auto warped to random spot in the map upon login in-case they're stuck in dead cell. Closes #802 --- src/map/pc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/map/pc.c b/src/map/pc.c index 0313428ab..a0af3a04b 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -1167,6 +1167,9 @@ bool pc_authok(struct map_session_data *sd, int login_id2, time_t expiration_tim clif->authfail_fd(sd->fd, 0); return false; } + } else if (map->getcell(sd->status.last_point.map, &sd->bl, sd->status.last_point.x, sd->status.last_point.y, CELL_CHKNOPASS)) { + //warp player stuck in invaild cell + pc->setpos(sd,sd->status.last_point.map,0,0,CLR_OUTSIGHT); } clif->authok(sd); -- cgit v1.2.3-70-g09d2