summaryrefslogtreecommitdiff
path: root/src/game/g_session.c
diff options
context:
space:
mode:
authorMikko Tiusanen <ams@daug.net>2015-01-25 23:47:16 +0200
committerMikko Tiusanen <ams@daug.net>2015-01-25 23:47:16 +0200
commit56382169c394bc6a1e63a91fdd59b58ac3974986 (patch)
treeca7b9e762d4dfc7a11bc01e7dcbe072f465dc343 /src/game/g_session.c
parent67948a489d2a07b94b6d5a3eeb2b642146865a61 (diff)
Fixed compiler warnings in all game, cgame sources.
Diffstat (limited to 'src/game/g_session.c')
-rw-r--r--src/game/g_session.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/g_session.c b/src/game/g_session.c
index 847013a..600257c 100644
--- a/src/game/g_session.c
+++ b/src/game/g_session.c
@@ -55,11 +55,11 @@ void G_WriteClientSessionData( gclient_t *client )
client->sess.spectatorState,
client->sess.spectatorClient,
client->sess.restartTeam,
- client->sess.seenWelcome,
+ client->sess.seenWelcome,
Com_ClientListString( &client->sess.ignoreList )
- );
+ );
- var = va( "session%i", client - level.clients );
+ var = va( "session%i", (int)(client - level.clients) );
trap_Cvar_Set( var, s );
}
@@ -79,7 +79,7 @@ void G_ReadSessionData( gclient_t *client )
int restartTeam;
char ignorelist[ 17 ];
- var = va( "session%i", client - level.clients );
+ var = va( "session%i", (int)(client - level.clients) );
trap_Cvar_VariableStringBuffer( var, s, sizeof(s) );
sscanf( s, "%i %i %i %i %i %16s",