diff options
author | Theriaca <reichmeister@protonmail.com> | 2019-01-26 07:19:44 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2019-02-10 14:47:47 +0100 |
commit | b4f7bd74f46219909dcb116d4448a378edc405b7 (patch) | |
tree | 24a354b1d42671cb0d64214f367ab387d05a20d8 /src/game/g_active.c | |
parent | f70201598451e80e635c28a4eca198092211e399 (diff) |
rewrite and optimize G_OverflowCredits()
- now always prioritizes poor players
- synchronizes PERS_CREDIT once per loop, instead of constantly
additionally, rename:
- G_AddCreditToClient -> G_AddFundsToClient
- G_OverflowCredits -> G_OverflowFunds
- 'credit(s)' parameters -> 'funds'
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r-- | src/game/g_active.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c index 63af175..3a989cc 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -1558,11 +1558,11 @@ static void ClientGradualFunds( gentity_t *ent ) switch ( ent->client->ps.stats[ STAT_PTEAM ] ) { case PTE_ALIENS: - G_AddCreditToClient( ent->client, FREEKILL_ALIEN, qtrue ); + G_AddFundsToClient( ent->client, FREEKILL_ALIEN, qtrue ); break; case PTE_HUMANS: - G_AddCreditToClient( ent->client, FREEKILL_HUMAN, qtrue ); + G_AddFundsToClient( ent->client, FREEKILL_HUMAN, qtrue ); break; } |