Skip to content

Commit

Permalink
Addendum to 295219f (Fixed player version for custom builds)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccw808 committed Oct 5, 2017
1 parent c473045 commit bdaf4da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Server/mods/deathmatch/logic/CGame.cpp
Expand Up @@ -1655,7 +1655,11 @@ void CGame::Packet_PlayerJoinData ( CPlayerJoinDataPacket& Packet )
strPlayerVersion = SStringX ( strPlayerVersionTemp );
}
#if MTASA_VERSION_TYPE < VERSION_TYPE_UNSTABLE
strPlayerVersion = Packet.GetPlayerVersion();
if (atoi(ExtractVersionStringBuildNumber(Packet.GetPlayerVersion())) != 0)
{
// Use player version from packet if it contains a valid build number
strPlayerVersion = Packet.GetPlayerVersion();
}
#endif

SString strIP = pPlayer->GetSourceIP ();
Expand Down

0 comments on commit bdaf4da

Please sign in to comment.