Some changes

This commit is contained in:
Jgunishka 2019-08-21 21:29:11 +03:00
parent 2b3e65847a
commit 618cc9c35f

View File

@ -623,9 +623,9 @@ public final class KailleraUserImpl implements KailleraUser, Executable
return; return;
} }
if(this == null){ /*if(this == null){
throw new GameChatException("You don't exist!"); //$NON-NLS-1$ throw new GameChatException("You don't exist!"); //$NON-NLS-1$
} }*/
game.chat(this, message); game.chat(this, message);
} }
@ -634,16 +634,18 @@ public final class KailleraUserImpl implements KailleraUser, Executable
{ {
updateLastActivity(); updateLastActivity();
if(game != null){ if(getStatus() == KailleraUser.STATUS_IDLE){
if(getStatus() == KailleraUser.STATUS_IDLE){ return;
return; }
}
setStatus(KailleraUser.STATUS_IDLE); setStatus(KailleraUser.STATUS_IDLE);
if(game != null){
game.drop(this, playerNumber); game.drop(this, playerNumber);
if(p2P == true) //not necessary to show it twice
/*if(p2P == true)
game.announce("Please Relogin, to update your client of missed server activity during P2P!", this); game.announce("Please Relogin, to update your client of missed server activity during P2P!", this);
p2P = false; p2P = false;*/
} }
else else
log.debug(this + " drop game failed: Not in a game"); //$NON-NLS-1$ log.debug(this + " drop game failed: Not in a game"); //$NON-NLS-1$