From: qwerltaz <69696513+qwerltaz@users.noreply.github.com> Date: Thu, 28 Dec 2023 23:28:15 +0000 (+0100) Subject: flammable entities hotfix (#23113) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2fe1164a03c212095aa383461335b016f9d7fb47;p=space-station-14.git flammable entities hotfix (#23113) * flammable fix * move air check and ignition to if statement --- diff --git a/Content.Server/Atmos/EntitySystems/FlammableSystem.cs b/Content.Server/Atmos/EntitySystems/FlammableSystem.cs index a970ef564a..f2434a54be 100644 --- a/Content.Server/Atmos/EntitySystems/FlammableSystem.cs +++ b/Content.Server/Atmos/EntitySystems/FlammableSystem.cs @@ -382,6 +382,18 @@ namespace Content.Server.Atmos.EntitySystems if (flammable.FireStacks > 0) { + var air = _atmosphereSystem.GetContainingMixture(uid); + + // If we're in an oxygenless environment, put the fire out. + if (air == null || air.GetMoles(Gas.Oxygen) < 1f) + { + Extinguish(uid, flammable); + continue; + } + + EnsureComp(uid); + _ignitionSourceSystem.SetIgnited(uid); + // TODO FLAMMABLE: further balancing var damageScale = Math.Min((int)flammable.FireStacks, 5); @@ -395,20 +407,7 @@ namespace Content.Server.Atmos.EntitySystems else { Extinguish(uid, flammable); - continue; } - - var air = _atmosphereSystem.GetContainingMixture(uid); - - // If we're in an oxygenless environment, put the fire out. - if (air == null || air.GetMoles(Gas.Oxygen) < 1f) - { - Extinguish(uid, flammable); - continue; - } - - EnsureComp(uid); - _ignitionSourceSystem.SetIgnited(uid); } } }