summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Levin <risujin@fastmail.fm>2009-10-03 11:19:29 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:14:53 +0000
commit301fd365934eebeb9322de4191ff77fb1d274cd1 (patch)
treee17b08bbbefaf9f181f200760298405b123a9e2a /src
parent9fed6829767d39dbe05f9fa54dfcf18ae792e991 (diff)
Forgot to respect cap parameter in G_AddCreditToClient. Should be able to sell beyond the 2000 credit cap again.
Diffstat (limited to 'src')
-rw-r--r--src/game/g_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index b8fd8472..da10b994 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -95,7 +95,7 @@ void G_AddCreditToClient( gclient_t *client, short credit, qboolean cap )
capAmount = client->pers.teamSelection == PTE_ALIENS ?
ALIEN_MAX_FRAGS * ALIEN_CREDITS_PER_FRAG : HUMAN_MAX_CREDITS;
- if( client->pers.credit > capAmount )
+ if( cap && client->pers.credit > capAmount )
client->pers.credit = capAmount;
if( client->pers.credit < 0 )