summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2020-04-12 20:07:05 +0200
committerPaweł Redman <pawel.redman@gmail.com>2020-04-12 20:07:05 +0200
commit5f4058b373ebbeffed60437354efb820260473d0 (patch)
treec150aacb583aa0a1623dd428eb53f3b8c1b6a92e /src
parentbefabb2425738561090a985524f5b0969e9c22b9 (diff)
Fix a potential bug around SD reward multipliers
Diffstat (limited to 'src')
-rw-r--r--src/game/g_combat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_combat.c b/src/game/g_combat.c
index 1c57f60..60d4f28 100644
--- a/src/game/g_combat.c
+++ b/src/game/g_combat.c
@@ -544,7 +544,7 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
//horribly complex nasty alien land
float humanValue = BG_GetValueOfHuman( &self->client->ps ), factor;
int frags;
- int unclaimedFrags = (int)humanValue;
+ int unclaimedFrags;
factor = G_RewardFactor( self, attacker );
if( g_debugRewards.integer )
@@ -553,6 +553,8 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
if( g_debugRewards.integer )
Com_Printf( "%d", (int)humanValue );
+ unclaimedFrags = humanValue;
+
for( i = 0; i < MAX_CLIENTS; i++ )
{
player = g_entities + i;