Replace switch with more proper way of checking allowSecurityLevel, and a few other minor changes.

--HG--
branch : trunk
This commit is contained in:
Chaz Brown committed 2009-08-29 08:51:24 -04:00
1 parent 2345c5ca8d
commit 055acc4b8a
3 files changed
+11 -34

No files matched your search

+2 -1
View File
@@ -862,8 +862,9 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket)
}
// Check locked state for server
sWorld.UpdateAllowedSecurity();
AccountTypes allowedAccountType = sWorld.GetPlayerSecurityLimit ();
sLog.outDebug("Allowed Level: %u Player Level %u", allowedAccountType, AccountTypes(security));
if (allowedAccountType > SEC_PLAYER && AccountTypes(security) < allowedAccountType)
{
WorldPacket Packet (SMSG_AUTH_RESPONSE, 1);