]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix consumable health giving one health unit more than it should
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 1 Feb 2012 12:00:32 +0000 (14:00 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 1 Feb 2012 12:00:32 +0000 (14:00 +0200)
data/qcsrc/server/t_items.qc
docs/TODO.txt

index 73e333334f4061e6f80b327e3c4b2cadb3cfc2eb..69ff60da05c4514ff6ff66c2b69fbd6e15223a38 100644 (file)
@@ -257,7 +257,7 @@ void Item_Consumable_Think()
                        damage_offset = 1;\r
                        if(cvar("g_balance_vore_digestion_distribute")) // apply distributed digestion damage\r
                                damage_offset /= (1 - (self.predator.stomach_load / self.predator.stomach_maxload) * bound(0, cvar("g_balance_vore_digestion_distribute"), 1));\r
-                       damage = cvar("g_balance_vore_digestion_damage_item") / damage_offset;\r
+                       damage = ceil(cvar("g_balance_vore_digestion_damage_item") / damage_offset);\r
 \r
                        self.health -= damage;\r
                        if(self.predator.health + damage <= self.max_health)\r
index 7a7a7e94ec7600c6dd42acaf203a504da065234e..032a26e26b463efa112c3817df66944d74a03020 100644 (file)
 \r
 - 0.7 BUG: With the latest engine, the view is no longer locked after match end, and you can still look around. See what changed in Xonotic and how to fix this.\r
 \r
-- 0.7 BUG: Consumable health seems to give more than the health it should.\r
-\r
 - 0.7: What happens to consumable items when the pred gets eaten?\r
 \r
 - 0.7 | 0.8: Make the volume of footstep sounds depend on player size.\r