diff options
author | Michael Levin <risujin@fastmail.fm> | 2009-10-03 11:19:29 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:14:53 +0000 |
commit | 301fd365934eebeb9322de4191ff77fb1d274cd1 (patch) | |
tree | e17b08bbbefaf9f181f200760298405b123a9e2a /src/game | |
parent | 9fed6829767d39dbe05f9fa54dfcf18ae792e991 (diff) |
Forgot to respect cap parameter in G_AddCreditToClient. Should be able to sell beyond the 2000 credit cap again.
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_client.c | 2 |
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 ) |