From 7cf6bb398cf895ecc9a436dcec6525920a0ea551 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 10 Feb 2019 15:42:46 +0100 Subject: Another missing floorf --- src/game/g_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit