diff options
author | /dev/humancontroller <devhc@example.com> | 2017-04-14 19:08:11 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-04-15 17:24:15 +0200 |
commit | 5e472f35354986a26ec9460fff2fc8b14dadf773 (patch) | |
tree | 627eb35c40a19ce67149a550890a055568e3c805 /src/game/g_session.c | |
parent | 91496cdb54e11d8ac746bb6982b0ade24c035503 (diff) |
fix a bunch of %i format flags / arguments
Diffstat (limited to 'src/game/g_session.c')
-rw-r--r-- | src/game/g_session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_session.c b/src/game/g_session.c index e1705ea..c303134 100644 --- a/src/game/g_session.c +++ b/src/game/g_session.c @@ -59,7 +59,7 @@ void G_WriteClientSessionData( gclient_t *client ) BG_ClientListString( &client->sess.ignoreList ) ); - var = va( "session%i", client - level.clients ); + var = va( "session%i", (int)( client - level.clients ) ); trap_Cvar_Set( var, s ); } @@ -83,7 +83,7 @@ void G_ReadSessionData( gclient_t *client ) int sessionTeam; int restartTeam; - var = va( "session%i", client - level.clients ); + var = va( "session%i", (int)( client - level.clients ) ); trap_Cvar_VariableStringBuffer( var, s, sizeof(s) ); // FIXME: should be using BG_ClientListParse() for ignoreList, but |