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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index 4d674905..a472daae 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -969,7 +969,6 @@ void ClientUserinfoChanged( int clientNum )
char c1[ MAX_INFO_STRING ];
char c2[ MAX_INFO_STRING ];
char userinfo[ MAX_INFO_STRING ];
- team_t team;
ent = g_entities + clientNum;
client = ent->client;
@@ -1126,8 +1125,6 @@ void ClientUserinfoChanged( int clientNum )
strcpy( c1, Info_ValueForKey( userinfo, "color1" ) );
strcpy( c2, Info_ValueForKey( userinfo, "color2" ) );
- team = client->pers.teamSelection;
-
Q_strncpyz( client->pers.voice, Info_ValueForKey( userinfo, "voice" ),
sizeof( client->pers.voice ) );
@@ -1137,7 +1134,7 @@ void ClientUserinfoChanged( int clientNum )
Com_sprintf( userinfo, sizeof( userinfo ),
"n\\%s\\t\\%i\\model\\%s\\c1\\%s\\c2\\%s\\"
"hc\\%i\\ig\\%16s\\v\\%s",
- client->pers.netname, team, model, c1, c2,
+ client->pers.netname, client->pers.teamSelection, model, c1, c2,
client->pers.maxHealth, BG_ClientListString( &client->sess.ignoreList ),
client->pers.voice );