summaryrefslogtreecommitdiff
path: root/src/game/g_client.c
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-05-18 22:28:46 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-05-18 22:30:39 +0200
commit68d2b3ae9ec3ef78167c20f1c9662c5020ee1f04 (patch)
treec0ad32201bd38c95ef118ae8697f61118918b0fc /src/game/g_client.c
parent45cdb9ec54ba66201a1d47d699802e85fca8df53 (diff)
Basic implementation of !versions.
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" );