Skip to content

Commit

Permalink
game: fixed missing parameters in read session data, refs #1292
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarquis committed Jun 11, 2019
1 parent 48e377a commit 0be8b52
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/game/g_session.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ void G_WriteClientSessionData(gclient_t *client, qboolean restart)
((mvc >> 16) & 0xFFFF), ((mvc >> 16) & 0xFFFF),
#endif #endif
// Damage and rounds played rolled in with weapon stats (below) // Damage and rounds played rolled in with weapon stats (below)

client->sess.muted, client->sess.muted,

client->sess.ignoreClients[0], client->sess.ignoreClients[0],
client->sess.ignoreClients[1], client->sess.ignoreClients[1],
client->pers.enterTime, client->pers.enterTime,
Expand Down Expand Up @@ -270,15 +270,15 @@ void G_ReadSessionData(gclient_t *client)


#ifdef FEATURE_MULTIVIEW #ifdef FEATURE_MULTIVIEW
#ifdef FEATURE_RATING #ifdef FEATURE_RATING
sscanf(s, "%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %f %f %f %f %i %i %i %i %i %i %i %i", sscanf(s, "%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %f %f %f %f %i %i %i %i %i %i %i %i",
#else #else
sscanf(s, "%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i", sscanf(s, "%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i",
#endif #endif
#else #else
#ifdef FEATURE_RATING #ifdef FEATURE_RATING
sscanf(s, "%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %f %f %f %f %i %i %i %i %i %i", sscanf(s, "%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %f %f %f %f %i %i %i %i %i %i",
#else #else
sscanf(s, "%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i", sscanf(s, "%i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i %i",
#endif #endif
#endif #endif
(int *)&client->sess.sessionTeam, (int *)&client->sess.sessionTeam,
Expand All @@ -302,6 +302,7 @@ void G_ReadSessionData(gclient_t *client)
&client->sess.self_kills, &client->sess.self_kills,
&client->sess.team_kills, &client->sess.team_kills,
&client->sess.team_gibs, &client->sess.team_gibs,

&client->sess.time_axis, &client->sess.time_axis,
&client->sess.time_allies, &client->sess.time_allies,
&client->sess.time_played, &client->sess.time_played,
Expand All @@ -317,6 +318,7 @@ void G_ReadSessionData(gclient_t *client)
#endif #endif
// Damage and round count rolled in with weapon stats (below) // Damage and round count rolled in with weapon stats (below)
(int *)&client->sess.muted, (int *)&client->sess.muted,

&client->sess.ignoreClients[0], &client->sess.ignoreClients[0],
&client->sess.ignoreClients[1], &client->sess.ignoreClients[1],
&client->pers.enterTime, &client->pers.enterTime,
Expand Down

0 comments on commit 0be8b52

Please sign in to comment.