summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2019-02-10 15:42:46 +0100
committerPaweł Redman <pawel.redman@gmail.com>2019-02-10 15:42:46 +0100
commit7cf6bb398cf895ecc9a436dcec6525920a0ea551 (patch)
tree4f2fa4ff0468b39dd0055eae6def23822806d282 /src
parentb07b3edda86a6739191334b231537165b139f2e5 (diff)
Another missing floorf
Diffstat (limited to 'src')
-rw-r--r--src/game/g_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 470376d..17db035 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -708,7 +708,7 @@ void G_ChangeTeam( gentity_t *ent, pTeam_t newTeam )
ent->client->pers.score = 0;
}
- ent->client->ps.persistant[ PERS_CREDIT ] = ent->client->pers.funds;
+ ent->client->ps.persistant[ PERS_CREDIT ] = floorf(ent->client->pers.funds);
ent->client->ps.persistant[ PERS_KILLED ] = 0;
ent->client->pers.statscounters.kills = 0;
ent->client->pers.statscounters.structskilled = 0;