]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix something
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 17:19:53 +0000 (20:19 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 17:19:53 +0000 (20:19 +0300)
data/qcsrc/server/bot/havocbot/vore_ai.qc

index 767e9cb8d3bf31a908879b1f8a68157b5c9878dc..f50d1fc7c5929b440ed0745abba103877dfced09 100644 (file)
@@ -135,7 +135,8 @@ void Vore_AI()
                        fear += cvar("bot_ai_vore_fear") * self.bot_vorefear;
                fear += self.stomach_load; // the bigger our stomach, the less we want to put someone else in there
                fear *= (prey.scale / self.scale); // predators fear larger prey and are courageous toward smaller prey
-               fear *= prey.stomach_load; // predators fear prey that have a large stomach
+               if(prey.stomach_load)
+                       fear *= prey.stomach_load; // predators fear prey that have a large stomach
 
                // when a bot is being swallowed, he will try to swallow the enemy back in defense, forgetting about fear
                if(self.swallow_progress_prey)