]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Use floor() instead of ceil() for max load, to match health better
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 18 Jul 2011 11:12:00 +0000 (14:12 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 18 Jul 2011 11:12:00 +0000 (14:12 +0300)
data/qcsrc/server/vore.qc

index b8c84850df758e17f55717ad4a47f0bc828e3719..9b8c85dd93ccf5aa9e85db42d2022b7e736f4d24 100644 (file)
@@ -798,7 +798,7 @@ void Vore()
        self.stomach_maxload = cvar("g_balance_vore_load_pred_capacity");\r
        if(cvar("g_healthsize"))\r
                self.stomach_maxload *= self.scale;\r
-       self.stomach_maxload = ceil(self.stomach_maxload);\r
+       self.stomach_maxload = floor(self.stomach_maxload);\r
 \r
        // attempt to swallow our new prey if we pressed the attack button, and there's any in range\r
        self.stat_canswallow = 0;\r