mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-10 18:34:21 +02:00
CRMC low pressure - preserve .temp when breaking
This commit is contained in:
@@ -51,8 +51,10 @@ void Element::Element_CRMC()
|
|||||||
|
|
||||||
static int update(UPDATE_FUNC_ARGS)
|
static int update(UPDATE_FUNC_ARGS)
|
||||||
{
|
{
|
||||||
|
float origTemp = parts[i].temp;
|
||||||
if (sim->pv[y/CELL][x/CELL] < -30.0f)
|
if (sim->pv[y/CELL][x/CELL] < -30.0f)
|
||||||
sim->create_part(i, x, y, PT_CLST);
|
sim->create_part(i, x, y, PT_CLST);
|
||||||
|
parts[i].temp = origTemp;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user