From 77fcca7900b417bcaae0538879853b88aecff503 Mon Sep 17 00:00:00 2001 From: Theriaca Date: Mon, 21 Jan 2019 20:47:29 +0100 Subject: implement fractional evos for aliens - rewrite and optimize G_AddCreditToClient() - remove unclaimedFrags trashcode in player_die Overflowing of fractional evos is supported; sharing isn't (yet?) --- src/game/g_local.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game/g_local.h') diff --git a/src/game/g_local.h b/src/game/g_local.h index f4961fd..708a85a 100644 --- a/src/game/g_local.h +++ b/src/game/g_local.h @@ -409,6 +409,7 @@ typedef struct // used to save playerState_t values while in SPECTATOR_FOLLOW mode int score; int credit; + float fractionalCredit; // alien-only int ping; int lastTeamStatus; @@ -1123,7 +1124,7 @@ void G_UpdateZaps( int msec ); // // g_client.c // -void G_AddCreditToClient( gclient_t *client, short credit, qboolean cap ); +void G_AddCreditToClient( gclient_t *client, float credit, 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