no energy, no fire (#9788)

This commit is contained in:
Kashargul
2025-01-04 12:09:36 +01:00
committed by GitHub
parent 97bb3c1b93
commit 136a0bac98

View File

@@ -85,7 +85,8 @@
// Limit max lingering fire temp gain, or engines melt
if(air_contents.temperature < FIRE_MAX_TEMP) // May as well limit this
var/starting_energy = air_contents.temperature * air_contents.heat_capacity()
air_contents.temperature = (starting_energy + vsc.fire_fuel_energy_release * (gas_exchange * 1.05)) / air_contents.heat_capacity()
if(starting_energy > 0)
air_contents.temperature = (starting_energy + vsc.fire_fuel_energy_release * (gas_exchange * 1.05)) / air_contents.heat_capacity()
air_contents.update_values()
// Affect contents