diff options
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r-- | src/game/g_active.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c index 5cdf985..0a484ee 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -1923,6 +1923,11 @@ void ClientThink_real( gentity_t *ent ) if( ent->client->ps.eventSequence != oldEventSequence ) ent->eventTime = level.time; + // Give clients some credit periodically + ClientGradualFunds( ent ); + + client->ps.persistant[ PERS_CREDIT ] = client->pers.funds; + // Don't think anymore if dead if( client->ps.stats[ STAT_HEALTH ] <= 0 ) return; @@ -2025,9 +2030,6 @@ void ClientThink_real( gentity_t *ent ) client->retriggerArmouryMenu = 0; } - // Give clients some credit periodically - ClientGradualFunds( ent ); - // perform once-a-second actions ClientTimerActions( ent, msec ); @@ -2164,7 +2166,6 @@ void ClientEndFrame( gentity_t *ent ) // save a copy of certain playerState values in case of SPECTATOR_FOLLOW pers->score = ent->client->ps.persistant[ PERS_SCORE ]; - pers->funds = ent->client->ps.persistant[ PERS_CREDIT ]; // // If the end of unit layout is displayed, don't give |