From 0ef49ba324e49ad56f37f770702d3716d9c57471 Mon Sep 17 00:00:00 2001 From: Theriaca Date: Sat, 26 Jan 2019 15:58:41 +0100 Subject: rename pers.credit to pers.funds --- src/game/g_cmds.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/game/g_cmds.c') diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index aa80248..d6126c8 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -698,13 +698,13 @@ void G_ChangeTeam( gentity_t *ent, pTeam_t newTeam ) && ( level.time - ent->client->pers.teamChangeTime ) > 60000 ) ) { if( oldTeam == PTE_ALIENS ) - ent->client->pers.credit *= (float)FREEKILL_HUMAN / FREEKILL_ALIEN; + ent->client->pers.funds *= (float)FREEKILL_HUMAN / FREEKILL_ALIEN; else if( newTeam == PTE_ALIENS ) - ent->client->pers.credit *= (float)FREEKILL_ALIEN / FREEKILL_HUMAN; + ent->client->pers.funds *= (float)FREEKILL_ALIEN / FREEKILL_HUMAN; } else { - ent->client->pers.credit = 0; + ent->client->pers.funds = 0; ent->client->pers.score = 0; } @@ -5263,9 +5263,9 @@ static void Cmd_Ignore_f( gentity_t *ent ) } // transfer only credits the player really has - if( creds > ent->client->pers.credit ) + if( creds > ent->client->pers.funds ) { - creds = ent->client->pers.credit; + creds = ent->client->pers.funds; } // player has no credits @@ -5278,14 +5278,14 @@ static void Cmd_Ignore_f( gentity_t *ent ) // allow transfers only up to the credit/evo limit if( ( team == PTE_HUMANS ) && - ( creds > HUMAN_MAX_CREDITS - level.clients[ clientNum ].pers.credit ) ) + ( creds > HUMAN_MAX_CREDITS - level.clients[ clientNum ].pers.funds ) ) { - creds = HUMAN_MAX_CREDITS - level.clients[ clientNum ].pers.credit; + creds = HUMAN_MAX_CREDITS - level.clients[ clientNum ].pers.funds; } else if( ( team == PTE_ALIENS ) && - ( creds > ALIEN_MAX_KILLS - level.clients[ clientNum ].pers.credit ) ) + ( creds > ALIEN_MAX_KILLS - level.clients[ clientNum ].pers.funds ) ) { - creds = ALIEN_MAX_KILLS - level.clients[ clientNum ].pers.credit; + creds = ALIEN_MAX_KILLS - level.clients[ clientNum ].pers.funds; } // target cannot take any more credits @@ -5374,8 +5374,8 @@ static void Cmd_Ignore_f( gentity_t *ent ) "print \"donate: very funny\n\"" ); return; } - if( value > ent->client->pers.credit) - value = ent->client->pers.credit; + if( value > ent->client->pers.funds) + value = ent->client->pers.funds; // allocate memory for distribution amounts amounts = G_Alloc( level.maxclients * sizeof( int ) ); @@ -5392,7 +5392,7 @@ static void Cmd_Ignore_f( gentity_t *ent ) ent->client != level.clients + i && level.clients[ i ].pers.teamSelection == ent->client->pers.teamSelection ) { - new_credits = level.clients[ i ].pers.credit + portion; + new_credits = level.clients[ i ].pers.funds + portion; amounts[ i ] = portion; if( new_credits > max ) { amounts[ i ] -= new_credits - max; -- cgit