From 9d8ede7ce116b3c5037aca9468cd85538587c46c Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sat, 3 Oct 2009 12:30:21 +0000 Subject: * Fix /give funds being broken by the fractional alien credits refactor --- src/game/g_cmds.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/game') 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 ); } -- cgit