mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-01-16 22:08:28 +01:00
CRMC low pressure - preserve .temp when breaking
This commit is contained in:
parent
32033af67c
commit
75d33adbde
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user