From: MirceaKitsune Date: Sat, 19 Nov 2011 17:54:21 +0000 (+0200) Subject: Reorder some code X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ce3b3f8cd34fe3be1d28ad1ee93ca03bb1e8aad7;p=voretournament%2Fvoretournament.git Reorder some code --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index d89de475..2a5e7387 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -182,21 +182,21 @@ void Vore_StomachLoad_Apply() { if(e.predator == self) { - if(self.cvar_cl_vore_autodigest > 1) - Vore_AutoDigest(self); prey_mass = cvar("g_balance_vore_load_prey_mass"); if(cvar("g_healthsize")) prey_mass *= e.scale; final_load += ceil(prey_mass); + if(self.cvar_cl_vore_autodigest > 1) + Vore_AutoDigest(self); } } for(e = world; (e = find(e, classname, "consumable")); ) { if(e.predator == self) { + final_load += ceil(e.dmg); if(self.cvar_cl_vore_autodigest > 0) Vore_AutoDigest(self); - final_load += ceil(e.dmg); } } self.stomach_load = final_load;