summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorTheriaca <reichmeister@protonmail.com>2019-01-26 05:15:13 +0100
committerPaweł Redman <pawel.redman@gmail.com>2019-02-10 14:47:47 +0100
commitf70201598451e80e635c28a4eca198092211e399 (patch)
tree966beae14870de04385cd72c4b4b457a31ee5038 /src/game
parent77fcca7900b417bcaae0538879853b88aecff503 (diff)
don't trigger addcredit code when value is 0
Diffstat (limited to 'src/game')
-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 6bbc93b..8fb61fe 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -223,7 +223,7 @@ G_AddCreditToClient
*/
void G_AddCreditToClient(gclient_t *client, float credit, qboolean cap)
{
- if (!client)
+ if (!client || credit == 0)
return;
if (cap) {