From: MirceaKitsune Date: Sat, 19 Nov 2011 16:08:34 +0000 (+0200) Subject: Fix another bug with consumable items X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9a284c5e83e5c678917300c26b172e9510ffc155;p=voretournament%2Fvoretournament.git Fix another bug with consumable items --- 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);