]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix a division by zero introduced in a recent commit
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 16:32:52 +0000 (18:32 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 19 Nov 2011 16:32:52 +0000 (18:32 +0200)
data/qcsrc/server/vore.qc

index c4bae46f0d2e3618472090fc75862e41eee0657b..accf701d4c1ac7bf2ee75c10fedb05fb8c3f463c 100644 (file)
@@ -804,7 +804,8 @@ void Vore()
                self.regurgitate_prepare = -1;\r
                return;\r
        }\r
-       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\r
+       if(cvar("g_balance_vore_load_pred_speedcap") && self.stomach_load)\r
+       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\r
        {\r
                self.regurgitate_prepare = -1;\r
                return;\r