Skip to content

Commit

Permalink
Fixed player version for custom builds (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccw808 committed Sep 22, 2017
1 parent d4f29d5 commit 02924e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Server/mods/deathmatch/logic/CGame.cpp
Expand Up @@ -1654,6 +1654,9 @@ void CGame::Packet_PlayerJoinData ( CPlayerJoinDataPacket& Packet )
strExtra = SStringX ( strExtraTemp );
strPlayerVersion = SStringX ( strPlayerVersionTemp );
}
#if MTASA_VERSION_TYPE < VERSION_TYPE_UNSTABLE
strPlayerVersion = Packet.GetPlayerVersion();
#endif

SString strIP = pPlayer->GetSourceIP ();
SString strIPAndSerial( "IP: %s Serial: %s Version: %s", strIP.c_str (), strSerial.c_str (), strPlayerVersion.c_str () );
Expand Down

0 comments on commit 02924e2

Please sign in to comment.