]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix another bug with consumable items
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 16:08:34 +0000 (18:08 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 16:08:34 +0000 (18:08 +0200)
data/qcsrc/server/t_items.qc

index 6aca1abf3ae16da007a657f1b5f1de0883ec840d..e2f75971ce4cd4057efec5ca4a4769932b108e2b 100644 (file)
@@ -359,7 +359,7 @@ void Item_DroppedConsumable_Touch()
                return;\r
 \r
        // give the consumable item to the player touching it\r
-       if(other.stomach_load + self.dmg <= other.stomach_maxload)\r
+       if not(other.stomach_load + self.dmg > other.stomach_maxload || other.stomach_load + self.initdmg > other.stomach_maxload)\r
        {\r
                Item_Consumable_Spawn(self, other);\r
                remove(self);\r