From f70201598451e80e635c28a4eca198092211e399 Mon Sep 17 00:00:00 2001 From: Theriaca Date: Sat, 26 Jan 2019 05:15:13 +0100 Subject: don't trigger addcredit code when value is 0 --- 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 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) { -- cgit