From fe4cf730032c9df1cc5ebb448019863e8e6adabc Mon Sep 17 00:00:00 2001 From: CHOMPStation2 <58959929+CHOMPStation2@users.noreply.github.com> Date: Sat, 27 Jan 2024 10:44:20 -0700 Subject: [PATCH] [MIRROR] fix division by 0 on fire effects (#7632) Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: CHOMPStation2 --- code/ZAS/Fire.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ZAS/Fire.dm b/code/ZAS/Fire.dm index 015ffa36a9..1728a95430 100644 --- a/code/ZAS/Fire.dm +++ b/code/ZAS/Fire.dm @@ -365,7 +365,7 @@ If it gains pressure too slowly, it may leak or just rupture instead of explodin var/total_combustables = (total_fuel + total_oxidizers) var/active_combustables = (FIRE_REACTION_OXIDIZER_AMOUNT/FIRE_REACTION_FUEL_AMOUNT + 1)*reaction_limit - if(total_combustables > 0) + if(total_combustables > 0 && total_moles > 0) //slows down the burning when the concentration of the reactants is low var/damping_multiplier = min(1, active_combustables / (total_moles/group_multiplier))