Code improvements.
This commit is contained in:
@@ -60,16 +60,16 @@ public class AuthGameGuard extends L2LoginClientPacket
|
||||
@Override
|
||||
protected boolean readImpl()
|
||||
{
|
||||
if (super._buf.remaining() >= 20)
|
||||
if (super._buf.remaining() < 20)
|
||||
{
|
||||
_sessionId = readD();
|
||||
_data1 = readD();
|
||||
_data2 = readD();
|
||||
_data3 = readD();
|
||||
_data4 = readD();
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
_sessionId = readD();
|
||||
_data1 = readD();
|
||||
_data2 = readD();
|
||||
_data3 = readD();
|
||||
_data4 = readD();
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -26,7 +26,6 @@ import javax.crypto.Cipher;
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.loginserver.GameServerTable.GameServerInfo;
|
||||
import com.l2jmobius.loginserver.LoginController;
|
||||
import com.l2jmobius.loginserver.LoginController.AuthLoginResult;
|
||||
import com.l2jmobius.loginserver.model.data.AccountInfo;
|
||||
import com.l2jmobius.loginserver.network.L2LoginClient;
|
||||
import com.l2jmobius.loginserver.network.L2LoginClient.LoginClientState;
|
||||
@@ -149,8 +148,7 @@ public class RequestAuthLogin extends L2LoginClientPacket
|
||||
return;
|
||||
}
|
||||
|
||||
final AuthLoginResult result = lc.tryCheckinAccount(client, clientAddr, info);
|
||||
switch (result)
|
||||
switch (lc.tryCheckinAccount(client, clientAddr, info))
|
||||
{
|
||||
case AUTH_SUCCESS:
|
||||
{
|
||||
|
@@ -64,14 +64,14 @@ public class RequestServerLogin extends L2LoginClientPacket
|
||||
@Override
|
||||
public boolean readImpl()
|
||||
{
|
||||
if (super._buf.remaining() >= 9)
|
||||
if (super._buf.remaining() < 9)
|
||||
{
|
||||
_skey1 = readD();
|
||||
_skey2 = readD();
|
||||
_serverId = readC();
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
_skey1 = readD();
|
||||
_skey2 = readD();
|
||||
_serverId = readC();
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user