Skip to content
Permalink
Browse files

Fixed joining a custom server due to minimum client requirements

  • Loading branch information...
ccw808 committed Jun 30, 2019
1 parent 4244ec5 commit 779d6e06664f81b8f2c6d4b1ef899db892b48af8
Showing with 3 additions and 0 deletions.
  1. +3 −0 Server/mods/deathmatch/logic/CGame.cpp
@@ -1705,6 +1705,8 @@ void CGame::Packet_PlayerJoinData(CPlayerJoinDataPacket& Packet)
pPlayer->SetSerial(strExtra, 1);
pPlayer->SetPlayerVersion(strPlayerVersion);

// Only do min client version checks if not a custom build or server has a build number
#if (MTASA_VERSION_TYPE > VERSION_TYPE_CUSTOM) || (MTASA_VERSION_BUILD > 0)
// Check if client must update
if (IsBelowMinimumClient(pPlayer->GetPlayerVersion()))
{
@@ -1730,6 +1732,7 @@ void CGame::Packet_PlayerJoinData(CPlayerJoinDataPacket& Packet)
DisconnectPlayer(this, *pPlayer, "");
return;
}
#endif

// Check the serial for validity
if (CBan* pBan = m_pBanManager->GetBanFromSerial(pPlayer->GetSerial().c_str()))

0 comments on commit 779d6e0

Please sign in to comment.
You can’t perform that action at this time.