Some coding style.

This commit is contained in:
tomrus88 2009-05-24 10:03:36 +04:00
parent f72a8bc6dc
commit 182cedd3c0

View file

@ -466,7 +466,7 @@ bool AuthSocket::_HandleLogonChallenge()
///- Fill the response packet with the result ///- Fill the response packet with the result
pkt << (uint8)REALM_AUTH_SUCCESS; pkt << (uint8)REALM_AUTH_SUCCESS;
// B may be calculated < 32B so we force minnimal length to 32B // B may be calculated < 32B so we force minimal length to 32B
pkt.append(B.AsByteArray(32), 32); // 32 bytes pkt.append(B.AsByteArray(32), 32); // 32 bytes
pkt << (uint8)1; pkt << (uint8)1;
pkt.append(g.AsByteArray(), 1); pkt.append(g.AsByteArray(), 1);
@ -474,7 +474,7 @@ bool AuthSocket::_HandleLogonChallenge()
pkt.append(N.AsByteArray(), 32); pkt.append(N.AsByteArray(), 32);
pkt.append(s.AsByteArray(), s.GetNumBytes());// 32 bytes pkt.append(s.AsByteArray(), s.GetNumBytes());// 32 bytes
pkt.append(unk3.AsByteArray(), 16); pkt.append(unk3.AsByteArray(), 16);
pkt << (uint8)0; // Added in 1.12.x client branch pkt << (uint8)0; // security flags (0x0...0x04)
uint8 secLevel = (*result)[4].GetUInt8(); uint8 secLevel = (*result)[4].GetUInt8();
_accountSecurityLevel = secLevel <= SEC_ADMINISTRATOR ? AccountTypes(secLevel) : SEC_ADMINISTRATOR; _accountSecurityLevel = secLevel <= SEC_ADMINISTRATOR ? AccountTypes(secLevel) : SEC_ADMINISTRATOR;