Fix setmapatmos temperature argument

Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
This commit is contained in:
Fildrance
2024-09-14 01:49:27 +03:00
committed by GitHub
parent 1e9c8f0849
commit 115ed0cdb2

View File

@@ -54,7 +54,7 @@ public sealed class AddMapAtmosCommand : LocalizedCommands
return;
}
var mix = new GasMixture(Atmospherics.CellVolume) {Temperature = Math.Min(temp, Atmospherics.TCMB)};
var mix = new GasMixture(Atmospherics.CellVolume) {Temperature = Math.Max(temp, Atmospherics.TCMB)};
for (var i = 0; i < Atmospherics.TotalNumberOfGases; i++)
{
if (args.Length == 3 + i)