]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/t_items.qc
Fix a bug with items getting stuck when near 0 health, which might have potentially...
[voretournament/voretournament.git] / data / qcsrc / server / t_items.qc
index b43d4f696ae4d758e99b7191008ca105f70e53ce..6aca1abf3ae16da007a657f1b5f1de0883ec840d 100644 (file)
@@ -240,7 +240,7 @@ void Item_Consumable_Think()
 \r
        self.scale = self.health / self.inithealth; // scale matches the item's digestion progress\r
        self.dmg = self.initdmg * self.scale;\r
-       if(self.health < 1)\r
+       if(self.health <= 0)\r
        {\r
                // this item is done\r
                Item_Consumable_Remove(self, FALSE);\r