From 572c7ab1f9208850fc7a5e0ce1991e2e96e7b01d Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Sun, 10 Feb 2019 14:47:36 +0100 Subject: Add a missing floor when syncing funds. --- src/game/g_active.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/g_active.c b/src/game/g_active.c index 0a484ee..436969b 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -1926,7 +1926,7 @@ void ClientThink_real( gentity_t *ent ) // Give clients some credit periodically ClientGradualFunds( ent ); - client->ps.persistant[ PERS_CREDIT ] = client->pers.funds; + client->ps.persistant[ PERS_CREDIT ] = floorf(client->pers.funds); // Don't think anymore if dead if( client->ps.stats[ STAT_HEALTH ] <= 0 ) -- cgit