summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c24
1 files changed, 12 insertions, 12 deletions
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;