We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c473045 commit bdaf4daCopy full SHA for bdaf4da
Server/mods/deathmatch/logic/CGame.cpp
@@ -1655,7 +1655,11 @@ void CGame::Packet_PlayerJoinData ( CPlayerJoinDataPacket& Packet )
1655
strPlayerVersion = SStringX ( strPlayerVersionTemp );
1656
}
1657
#if MTASA_VERSION_TYPE < VERSION_TYPE_UNSTABLE
1658
- strPlayerVersion = Packet.GetPlayerVersion();
+ if (atoi(ExtractVersionStringBuildNumber(Packet.GetPlayerVersion())) != 0)
1659
+ {
1660
+ // Use player version from packet if it contains a valid build number
1661
+ strPlayerVersion = Packet.GetPlayerVersion();
1662
+ }
1663
#endif
1664
1665
SString strIP = pPlayer->GetSourceIP ();
0 commit comments