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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index 9298eb55..621a0261 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1110,6 +1110,14 @@ void ClientUserinfoChanged( int clientNum )
else
client->ps.persistant[ PERS_STATE ] &= ~PS_WALLCLIMBINGTOGGLE;
+ // always sprint
+ s = Info_ValueForKey( userinfo, "cg_alwaysSprint" );
+
+ if( atoi( s ) )
+ client->ps.persistant[ PERS_STATE ] |= PS_ALWAYSSPRINT;
+ else
+ client->ps.persistant[ PERS_STATE ] &= ~PS_ALWAYSSPRINT;
+
// teamInfo
s = Info_ValueForKey( userinfo, "teamoverlay" );