From 9a284c5e83e5c678917300c26b172e9510ffc155 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 19 Nov 2011 18:08:34 +0200 Subject: [PATCH] Fix another bug with consumable items --- data/qcsrc/server/t_items.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/qcsrc/server/t_items.qc b/data/qcsrc/server/t_items.qc index 6aca1abf..e2f75971 100644 --- a/data/qcsrc/server/t_items.qc +++ b/data/qcsrc/server/t_items.qc @@ -359,7 +359,7 @@ void Item_DroppedConsumable_Touch() return; // give the consumable item to the player touching it - if(other.stomach_load + self.dmg <= other.stomach_maxload) + if not(other.stomach_load + self.dmg > other.stomach_maxload || other.stomach_load + self.initdmg > other.stomach_maxload) { Item_Consumable_Spawn(self, other); remove(self); -- 2.39.2