diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-05-27 22:39:06 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-05-27 22:39:06 +0200 |
commit | 05e4e1479b4a57d781572afa4346a6ef960043de (patch) | |
tree | 2d469423d938acdfe9f101c9af5ac32903c68728 /src/game/g_session.c | |
parent | e532a5d3fa21784423bcaf6209b235f364684668 (diff) |
Remove /ignore.
Diffstat (limited to 'src/game/g_session.c')
-rw-r--r-- | src/game/g_session.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/game/g_session.c b/src/game/g_session.c index 600257c..770ed83 100644 --- a/src/game/g_session.c +++ b/src/game/g_session.c @@ -50,13 +50,12 @@ void G_WriteClientSessionData( gclient_t *client ) const char *s; const char *var; - s = va( "%i %i %i %i %i %s", + s = va( "%i %i %i %i %i", client->sess.spectatorTime, client->sess.spectatorState, client->sess.spectatorClient, client->sess.restartTeam, - client->sess.seenWelcome, - Com_ClientListString( &client->sess.ignoreList ) + client->sess.seenWelcome ); var = va( "session%i", (int)(client - level.clients) ); @@ -82,18 +81,16 @@ void G_ReadSessionData( gclient_t *client ) var = va( "session%i", (int)(client - level.clients) ); trap_Cvar_VariableStringBuffer( var, s, sizeof(s) ); - sscanf( s, "%i %i %i %i %i %16s", + sscanf( s, "%i %i %i %i %i", &client->sess.spectatorTime, &spectatorState, &client->sess.spectatorClient, &restartTeam, - &client->sess.seenWelcome, - ignorelist + &client->sess.seenWelcome ); client->sess.spectatorState = (spectatorState_t)spectatorState; client->sess.restartTeam = (team_t)restartTeam; - Com_ClientListParse( &client->sess.ignoreList, ignorelist ); } @@ -131,7 +128,6 @@ void G_InitSessionData( gclient_t *client, char *userinfo ) sess->spectatorState = SPECTATOR_FREE; sess->spectatorTime = level.time; sess->spectatorClient = -1; - memset( &sess->ignoreList, 0, sizeof( sess->ignoreList ) ); sess->seenWelcome = 0; G_WriteClientSessionData( client ); } |