[MIRROR] fix division by 0 on fire effects (#7632)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2024-01-27 10:44:20 -07:00
committed by GitHub
parent 434d10ea6a
commit fe4cf73003

View File

@@ -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))