- Small fix that should help on multi-map servers when characters are swapping between servers too quickly
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5779 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
ddf13379b8
commit
5d8b522d76
@ -2164,7 +2164,8 @@ static int clif_delayquit(int tid, unsigned int tick, int id, int data) {
|
||||
*/
|
||||
void clif_quitsave(int fd,struct map_session_data *sd)
|
||||
{
|
||||
if (chrif_isconnect() && (!battle_config.prevent_logout || DIFF_TICK(gettick(), sd->canlog_tick) > battle_config.prevent_logout))
|
||||
if (chrif_isconnect() && (sd->state.waitingdisconnect || //Was already waiting to be disconnected.
|
||||
!battle_config.prevent_logout || DIFF_TICK(gettick(), sd->canlog_tick) > battle_config.prevent_logout))
|
||||
map_quit(sd);
|
||||
else if (sd->fd)
|
||||
{ //Disassociate session from player (session is deleted after this function was called)
|
||||
|
Loading…
x
Reference in New Issue
Block a user