Skip to content

Commit

Permalink
fix map atmos
Browse files Browse the repository at this point in the history
  • Loading branch information
pa.pecherskij committed Sep 29, 2024
1 parent 54ba238 commit 2dd77df
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,14 @@ public override void Update(float frameTime)
{
if (currentGas.Immutable)
{
currentGas = new GasMixture();
currentGas.CopyFrom(currentGas);
var newGas = new GasMixture();
newGas.CopyFrom(currentGas);
currentGas = newGas;
}

currentGas.Temperature += temperatureChange;
_atmosphere.SetMapAtmosphere(transform.MapUid!.Value, false, currentGas);
}


}
}
}
Expand Down

0 comments on commit 2dd77df

Please sign in to comment.