From 77beeed7ca491905f8830ac547cbd73633418e9e Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Wed, 1 Feb 2012 14:00:32 +0200 Subject: [PATCH] Fix consumable health giving one health unit more than it should --- data/qcsrc/server/t_items.qc | 2 +- docs/TODO.txt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/data/qcsrc/server/t_items.qc b/data/qcsrc/server/t_items.qc index 73e33333..69ff60da 100644 --- a/data/qcsrc/server/t_items.qc +++ b/data/qcsrc/server/t_items.qc @@ -257,7 +257,7 @@ void Item_Consumable_Think() damage_offset = 1; if(cvar("g_balance_vore_digestion_distribute")) // apply distributed digestion damage damage_offset /= (1 - (self.predator.stomach_load / self.predator.stomach_maxload) * bound(0, cvar("g_balance_vore_digestion_distribute"), 1)); - damage = cvar("g_balance_vore_digestion_damage_item") / damage_offset; + damage = ceil(cvar("g_balance_vore_digestion_damage_item") / damage_offset); self.health -= damage; if(self.predator.health + damage <= self.max_health) diff --git a/docs/TODO.txt b/docs/TODO.txt index 7a7a7e94..032a26e2 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -122,8 +122,6 @@ - 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. -- 0.7 BUG: Consumable health seems to give more than the health it should. - - 0.7: What happens to consumable items when the pred gets eaten? - 0.7 | 0.8: Make the volume of footstep sounds depend on player size. -- 2.39.2