CRMC low pressure - preserve .temp when breaking

This commit is contained in:
jacob1 2024-11-23 11:23:36 -05:00
parent 32033af67c
commit 75d33adbde
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -51,8 +51,10 @@ void Element::Element_CRMC()
static int update(UPDATE_FUNC_ARGS)
{
float origTemp = parts[i].temp;
if (sim->pv[y/CELL][x/CELL] < -30.0f)
sim->create_part(i, x, y, PT_CLST);
parts[i].temp = origTemp;
return 0;
}