summaryrefslogtreecommitdiff
path: root/src/game/g_combat.c
diff options
context:
space:
mode:
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 2c65abce..a5ea3ab7 100644
--- a/src/game/g_combat.c
+++ b/src/game/g_combat.c
@@ -44,11 +44,11 @@ void AddScore( gentity_t *ent, int score )
// make alien and human scores equivalent
if ( ent->client->pers.teamSelection == TEAM_ALIENS )
{
- score = rint( (double)score / 2.0 );
+ score = rint( ((float)score) / 2.0f );
}
// scale values down to fit the scoreboard better
- score = rint( (double)score / 50.0 );
+ score = rint( ((float)score) / 50.0f );
ent->client->ps.persistant[ PERS_SCORE ] += score;
CalculateRanks( );