]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/bot/havocbot/vore_ai.qc
Small improvements to the bot AI, as well as a fix
[voretournament/voretournament.git] / data / qcsrc / server / bot / havocbot / vore_ai.qc
index b55689049c1a2c8d5e254917361575d331fb86f1..e5051955a455bba4cd7da7acc8e0be0dcb879ea5 100644 (file)
@@ -199,7 +199,7 @@ void Vore_AI()
 
                                if(!Stomach_HasLivePrey(self))
                                if not(cvar("g_balance_vore_digestion_limit") < 0 && self.health < cvar("g_balance_vore_digestion_vampire_stable"))
-                               if not(consumables && self.health < min(min(g_pickup_healthsmall_max, g_pickup_healthmedium_max), min(g_pickup_healthlarge_max, g_pickup_healthmega_max)))
+                               if not(consumables && self.health < max(max(g_pickup_healthsmall_max, g_pickup_healthmedium_max), max(g_pickup_healthlarge_max, g_pickup_healthmega_max)))
                                        self.BUTTON_REGURGITATE = TRUE;
                        }