summaryrefslogtreecommitdiff
path: root/src/game/g_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r--src/game/g_client.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index f9a72ea..6044136 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1142,6 +1142,10 @@ void ClientUserinfoChanged( int clientNum, qboolean forceName )
if( !strcmp( s, "localhost" ) )
client->pers.localClient = qtrue;
+ // check the version
+ s = Info_ValueForKey( userinfo, "version" );
+ Q_strncpyz( client->pers.version, s, MAX_CLIENT_VERSION );
+
// check the item prediction
s = Info_ValueForKey( userinfo, "cg_predictItems" );