mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-02 04:22:34 +02:00
Add a reaction to produce BCOL
This commit is contained in:
committed by
Tamás Bálint Misius
parent
9413a1f0b6
commit
85ab70adb3
@@ -52,6 +52,14 @@ static int update(UPDATE_FUNC_ARGS)
|
|||||||
{
|
{
|
||||||
if (parts[i].temp > 450 && parts[i].temp > parts[i].tmp)
|
if (parts[i].temp > 450 && parts[i].temp > parts[i].tmp)
|
||||||
parts[i].tmp = (int)parts[i].temp;
|
parts[i].tmp = (int)parts[i].temp;
|
||||||
|
|
||||||
|
if (parts[i].temp > 773.0f && sim->pv[y/CELL][x/CELL] <= -10.0f)
|
||||||
|
{
|
||||||
|
float temp = parts[i].temp;
|
||||||
|
sim->create_part(i, x, y, PT_BCOL);
|
||||||
|
parts[i].temp = temp;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user