Change melting point for snow with wrong ctype back to 273.15
This commit is contained in:
parent
fb796c873b
commit
9e7ead9bcc
@ -3880,9 +3880,15 @@ void Simulation::update_particles_i(int start, int inc)
|
||||
{
|
||||
if (parts[i].ctype > 0 && parts[i].ctype < PT_NUM && parts[i].ctype != t)
|
||||
{
|
||||
if ((elements[parts[i].ctype].LowTemperatureTransition==PT_ICEI || elements[parts[i].ctype].LowTemperatureTransition==PT_SNOW) && pt<elements[parts[i].ctype].LowTemperature)
|
||||
if (elements[parts[i].ctype].LowTemperatureTransition==PT_ICEI || elements[parts[i].ctype].LowTemperatureTransition==PT_SNOW)
|
||||
{
|
||||
if (pt<elements[parts[i].ctype].LowTemperature)
|
||||
s = 0;
|
||||
}
|
||||
else if (pt<273.15f)
|
||||
s = 0;
|
||||
else
|
||||
|
||||
if (s)
|
||||
{
|
||||
#ifdef REALISTIC
|
||||
//One ice table value for all it's kinds
|
||||
|
Loading…
Reference in New Issue
Block a user