Fix SNOW(WATR) melting temperature

Broken by fixing SNOW(SLTW) melting temperature in a78bd78bfc
This commit is contained in:
jacksonmj 2014-10-31 16:33:41 +00:00
parent 2fc1dcbe29
commit 02e1969ef2

View File

@ -3880,7 +3880,7 @@ 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==t && pt<elements[parts[i].ctype].LowTemperature)
if ((elements[parts[i].ctype].LowTemperatureTransition==PT_ICEI || elements[parts[i].ctype].LowTemperatureTransition==PT_SNOW) && pt<elements[parts[i].ctype].LowTemperature)
s = 0;
else
{