diff options
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_cmds.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index d920b955..250ee9e4 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -366,7 +366,14 @@ void Cmd_Give_f( gentity_t *ent ) if( give_all || Q_stricmpn( name, "funds", 5 ) == 0 ) { - int credits = give_all ? ALIEN_MAX_CREDITS : atoi( name + 6 ); + int credits = atoi( name + 6 ); + + if( ent->client->pers.teamSelection == TEAM_ALIENS ) + credits *= ALIEN_CREDITS_PER_FRAG; + + if( give_all ) + credits = ALIEN_MAX_CREDITS; + G_AddCreditToClient( ent->client, credits, qtrue ); } |