#include <element.h>
int update_PRSN(UPDATE_FUNC_ARGS) {
int r, rx, ry;
{
if (parts[i].temp>=256.0+273.15)
parts[i].temp=256.0+273.15;
if (parts[i].temp<= -256.0+273.15)
parts[i].temp = -256.0+273.15;
if ([y/CELL][x/CELL]>= parts[i].temp)
{
create_part(PT_SPRK)
parts[i].ctype == PT_PRSN
parts[i].life = 4;
}
return 0;
}
#include <element.h>
int update_PRSN(UPDATE_FUNC_ARGS)
{
int r, rx, ry;
if (parts[i].temp>=256.0+273.15)
parts[i].temp = 256.0+273.15;
if (parts[i].temp<= -256.0+273.15)
parts[i].temp = -256.0+273.15;
if (pv[y/CELL][x/CELL]+273.15f >= parts[i].temp)
{
part_change_type(i, x, y, PT_SPRK);
parts[i].ctype = PT_PRSN;
parts[i].life = 4;
}
return 0;
}