summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2019-02-10 14:47:36 +0100
committerPaweł Redman <pawel.redman@gmail.com>2019-02-10 14:47:47 +0100
commit572c7ab1f9208850fc7a5e0ce1991e2e96e7b01d (patch)
tree0df9465fd7df252ebbe8ddd293123cd58cf9beb3 /src/game
parent50e64c25d1ed0334711987175b5cc1ce73e8477c (diff)
Add a missing floor when syncing funds.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_active.c2
1 files changed, 1 insertions, 1 deletions
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 )