]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Make sure health doesn't go below the limit
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 31 Jul 2011 18:50:05 +0000 (21:50 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 31 Jul 2011 18:50:05 +0000 (21:50 +0300)
data/qcsrc/server/vore.qc

index 2acff1a05ae05a9fdd376d5b74dd541c6d4618c8..afe74a06c383117c4aa00c2322d24bea4e3e6352 100644 (file)
@@ -811,6 +811,9 @@ void Vore()
        if(!self.stat_eaten)\r
                return;\r
 \r
+       if(self.deadflag != DEAD_NO && self.health < cvar("g_balance_vore_digestion_limit")) // make sure health doesn't go below the limit\r
+               self.health = cvar("g_balance_vore_digestion_limit");\r
+\r
        // automatically regurgitate prey that has reached their digestion limit\r
        if(cvar("g_balance_vore_digestion_limit_regurgitate"))\r
        if(self.health <= cvar("g_balance_vore_digestion_limit"))\r