Skip to content

Commit 02924e2

Browse files
authored
Fixed player version for custom builds (#160)
1 parent d4f29d5 commit 02924e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Server/mods/deathmatch/logic/CGame.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,6 +1654,9 @@ void CGame::Packet_PlayerJoinData ( CPlayerJoinDataPacket& Packet )
16541654
strExtra = SStringX ( strExtraTemp );
16551655
strPlayerVersion = SStringX ( strPlayerVersionTemp );
16561656
}
1657+
#if MTASA_VERSION_TYPE < VERSION_TYPE_UNSTABLE
1658+
strPlayerVersion = Packet.GetPlayerVersion();
1659+
#endif
16571660

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

0 commit comments

Comments
 (0)