From 301fd365934eebeb9322de4191ff77fb1d274cd1 Mon Sep 17 00:00:00 2001 From: Michael Levin Date: Sat, 3 Oct 2009 11:19:29 +0000 Subject: Forgot to respect cap parameter in G_AddCreditToClient. Should be able to sell beyond the 2000 credit cap again. --- src/game/g_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- cgit