summaryrefslogtreecommitdiff
path: root/src/game/g_combat.c
diff options
context:
space:
mode:
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
commit5e472f35354986a26ec9460fff2fc8b14dadf773 (patch)
tree627eb35c40a19ce67149a550890a055568e3c805 /src/game/g_combat.c
parent91496cdb54e11d8ac746bb6982b0ade24c035503 (diff)
fix a bunch of %i format flags / arguments
Diffstat (limited to 'src/game/g_combat.c')
-rw-r--r--src/game/g_combat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c
index 0658849..6fe40b7 100644
--- a/src/game/g_combat.c
+++ b/src/game/g_combat.c
@@ -1554,7 +1554,7 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker,
G_admin_tklog_log( attacker, NULL, mod );
- trap_SendConsoleCommand( EXEC_APPEND, va( "!putteam %d s %s\n", attacker - g_entities, g_adminTempSpec.string ) );
+ trap_SendConsoleCommand( EXEC_APPEND, va( "!putteam %d s %s\n", (int)( attacker - g_entities ), g_adminTempSpec.string ) );
attacker->client->pers.statscounters.spreebleeds = 0;
}
else if( attacker->client->pers.statscounters.spreebleeds > g_bleedingSpree.integer * 66 &&
@@ -1571,7 +1571,7 @@ void G_Damage( gentity_t *targ, gentity_t *inflictor, gentity_t *attacker,
attacker->client->pers.statscounters.spreebleeds > g_bleedingSpree.integer * 100 + g_bleedingSpree.integer * 20 )
{
trap_SendConsoleCommand( EXEC_APPEND,
- va("!kick %d auto-kick for team bleeding\n", ( attacker - g_entities )) );
+ va("!kick %d auto-kick for team bleeding\n", (int)( attacker - g_entities )) );
attacker->client->pers.statscounters.spreebleeds = -9000;
}
else if( attacker->client->pers.statscounters.spreebleeds > g_bleedingSpree.integer * 100 &&