From ce3b3f8cd34fe3be1d28ad1ee93ca03bb1e8aad7 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 19 Nov 2011 19:54:21 +0200 Subject: [PATCH] Reorder some code --- data/qcsrc/server/vore.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.2