Skip to content

Commit bdaf4da

Browse files
committed
Addendum to 295219f (Fixed player version for custom builds)
1 parent c473045 commit bdaf4da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Server/mods/deathmatch/logic/CGame.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1655,7 +1655,11 @@ void CGame::Packet_PlayerJoinData ( CPlayerJoinDataPacket& Packet )
16551655
strPlayerVersion = SStringX ( strPlayerVersionTemp );
16561656
}
16571657
#if MTASA_VERSION_TYPE < VERSION_TYPE_UNSTABLE
1658-
strPlayerVersion = Packet.GetPlayerVersion();
1658+
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+
}
16591663
#endif
16601664

16611665
SString strIP = pPlayer->GetSourceIP ();

0 commit comments

Comments
 (0)