mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-28 22:15:49 -04:00
cleanup
This commit is contained in:
@@ -1076,25 +1076,7 @@ void LoginServer::validateAccount(const StationId& stationId, uint32 clusterId,
|
||||
// Check cluster npe user limit
|
||||
if (cle->m_numTutorialPlayers > cle->m_onlineTutorialLimit)
|
||||
{
|
||||
canCreateRegular = false;
|
||||
canCreateJedi = false;
|
||||
}
|
||||
|
||||
// limit login/character creation based on subscription feature bits
|
||||
if (((subscriptionBits & ClientSubscriptionFeature::FreeTrial) != 0)
|
||||
&& ((subscriptionBits & ClientSubscriptionFeature::Base) == 0))
|
||||
{
|
||||
// Check cluster free trial user limit
|
||||
if (cle->m_numFreeTrialPlayers > cle->m_onlineFreeTrialLimit)
|
||||
{
|
||||
canLogin = false;
|
||||
}
|
||||
// Check cluster free trial character creation
|
||||
if (!cle->m_freeTrialCanCreateChar)
|
||||
{
|
||||
canCreateRegular = false;
|
||||
canCreateJedi = false;
|
||||
}
|
||||
canLogin = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1022,7 +1022,7 @@ void UdpManager::ProcessRawPacket(const PacketHistoryEntry *e)
|
||||
{
|
||||
if (e->mBuffer[0] == 0 && e->mBuffer[1] == UdpConnection::cUdpPacketPortAlive)
|
||||
return; // port-alive packets are not supposed to reach the destination machine, but on the odd chance they do, pretend like they never existed
|
||||
|
||||
|
||||
UdpConnection *con = AddressGetConnection(e->mIp, e->mPort);
|
||||
|
||||
if (con == nullptr)
|
||||
|
||||
+1
-1
@@ -1078,7 +1078,7 @@ class UdpConnection : public PriorityQueueMember, public AddressHashTableMember,
|
||||
, cDisconnectReasonNewConnectionAttempt, cDisconnectReasonConnectionRefused
|
||||
, cDisconnectReasonMutualConnectError, cDisconnectReasonConnectingToSelf
|
||||
, cDisconnectReasonReliableOverflow
|
||||
, cDisconnectReasonCount, cDisconnectReasonDosAttack };
|
||||
, cDisconnectReasonDosAttack, cDisconnectReasonCount };
|
||||
|
||||
// standard AddRef/Release scheme
|
||||
void AddRef();
|
||||
|
||||
Reference in New Issue
Block a user