From: MirceaKitsune Date: Sat, 19 Nov 2011 16:32:52 +0000 (+0200) Subject: Fix a division by zero introduced in a recent commit X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a100395348c4318917e200a694dce492c9de0fdc;p=voretournament%2Fvoretournament.git Fix a division by zero introduced in a recent commit --- diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index c4bae46f..accf701d 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -804,7 +804,8 @@ void Vore() self.regurgitate_prepare = -1; return; } - if(cvar("g_balance_vore_load_pred_speedcap") && self.stomach_load && vlen(self.velocity) >= cvar("g_balance_vore_load_pred_speedcap") / (self.stomach_load / self.stomach_maxload)) // predator's going too fast, gets sick and throws up + if(cvar("g_balance_vore_load_pred_speedcap") && self.stomach_load) + if(vlen(self.velocity) >= cvar("g_balance_vore_load_pred_speedcap") / (self.stomach_load / self.stomach_maxload)) // predator's going too fast, gets sick and throws up { self.regurgitate_prepare = -1; return;