]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Reorder some code
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 17:54:21 +0000 (19:54 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 17:54:21 +0000 (19:54 +0200)
data/qcsrc/server/vore.qc

index d89de475e64e9c9f2ab690d20b05de3fcd918a7f..2a5e7387c1097162b40b6c8d9ac235906bcbf8b4 100644 (file)
@@ -182,21 +182,21 @@ void Vore_StomachLoad_Apply()
        {\r
                if(e.predator == self)\r
                {\r
-                       if(self.cvar_cl_vore_autodigest > 1)\r
-                               Vore_AutoDigest(self);\r
                        prey_mass = cvar("g_balance_vore_load_prey_mass");\r
                        if(cvar("g_healthsize"))\r
                                prey_mass *= e.scale;\r
                        final_load += ceil(prey_mass);\r
+                       if(self.cvar_cl_vore_autodigest > 1)\r
+                               Vore_AutoDigest(self);\r
                }\r
        }\r
        for(e = world; (e = find(e, classname, "consumable")); )\r
        {\r
                if(e.predator == self)\r
                {\r
+                       final_load += ceil(e.dmg);\r
                        if(self.cvar_cl_vore_autodigest > 0)\r
                                Vore_AutoDigest(self);\r
-                       final_load += ceil(e.dmg);\r
                }\r
        }\r
        self.stomach_load = final_load;\r