From b4f7bd74f46219909dcb116d4448a378edc405b7 Mon Sep 17 00:00:00 2001 From: Theriaca Date: Sat, 26 Jan 2019 07:19:44 +0100 Subject: 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' --- src/game/g_local.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/g_local.h') diff --git a/src/game/g_local.h b/src/game/g_local.h index 708a85a..5250913 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -1124,7 +1124,7 @@ void G_UpdateZaps( int msec ); // // g_client.c // -void G_AddCreditToClient( gclient_t *client, float credit, qboolean cap ); +void G_AddFundsToClient( gclient_t *client, float funds, qboolean cap ); team_t TeamCount( int ignoreClientNum, int team ); void G_SetClientViewAngle( gentity_t *ent, vec3_t angle ); gentity_t *G_SelectTremulousSpawnPoint( pTeam_t team, vec3_t preference, vec3_t origin, vec3_t angles ); -- cgit