From 618cc9c35f22a8f34f42e20fef00a71cf62fc51c Mon Sep 17 00:00:00 2001 From: Jgunishka <53265225+Jgunishka@users.noreply.github.com> Date: Wed, 21 Aug 2019 21:29:11 +0300 Subject: [PATCH] Some changes --- .../kaillera/model/impl/KailleraUserImpl.java | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/org/emulinker/kaillera/model/impl/KailleraUserImpl.java b/src/org/emulinker/kaillera/model/impl/KailleraUserImpl.java index e6a4311..b77fc6d 100644 --- a/src/org/emulinker/kaillera/model/impl/KailleraUserImpl.java +++ b/src/org/emulinker/kaillera/model/impl/KailleraUserImpl.java @@ -623,9 +623,9 @@ public final class KailleraUserImpl implements KailleraUser, Executable return; } - if(this == null){ + /*if(this == null){ throw new GameChatException("You don't exist!"); //$NON-NLS-1$ - } + }*/ game.chat(this, message); } @@ -634,16 +634,18 @@ public final class KailleraUserImpl implements KailleraUser, Executable { updateLastActivity(); + if(getStatus() == KailleraUser.STATUS_IDLE){ + return; + } + + setStatus(KailleraUser.STATUS_IDLE); + if(game != null){ - if(getStatus() == KailleraUser.STATUS_IDLE){ - return; - } - - setStatus(KailleraUser.STATUS_IDLE); 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); - p2P = false; + p2P = false;*/ } else log.debug(this + " drop game failed: Not in a game"); //$NON-NLS-1$