From: Lyberta Date: Mon, 19 Mar 2018 10:37:05 +0000 (+0300) Subject: Fixed hash change. X-Git-Tag: xonotic-v0.8.5~2204^2~8 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c003b5606a95a384f2d8f08d792b0e1541003735;p=xonotic%2Fxonotic-data.pk3dir.git Fixed hash change. --- diff --git a/qcsrc/server/resources.qc b/qcsrc/server/resources.qc index 254db749f..c53cf7ad8 100644 --- a/qcsrc/server/resources.qc +++ b/qcsrc/server/resources.qc @@ -157,7 +157,7 @@ void GiveResourceWithLimit(entity receiver, int resource_type, float amount, resource_type = M_ARGV(1, int); amount = M_ARGV(2, float); limit = M_ARGV(3, float); - if (amount <= 0) + if (amount == 0) { return; }