#include
int update_NTRO(UPDATE_FUNC_ARGS) {
{
int r,rx,ry;
for (rx=-2; rx<3; rx++)<br/> for (ry=-2; ry<3; ry++)<br/> if (x+rx>=0 && y+ry>=0 && x+rx {
r = pmap[y+ry][x+rx];
if(1>rand()%5000){
if (1>rand()%3) create_part(i,x,y,PT_O2);
else
create_part(i,x,y,PT_NTRG);
}
if(pv[y/CELL][x/CELL]>15.0);{
if ((r&0xFF)==PT_FIRE || (r&0xFF)==PT_PLSM)
{
part_change_type(i,x,y,PT_FIRE);
}
}
if ((r&0xFF)==PT_HEXN || (r&0xFF)==PT_HEXV)
{
part_change_type(i,x,y,PT_NITR);
kill_part(r>>8);
}
}
}
return 0;
}
if ((r&0xFF)==PT_O2);
{
part_change_type(i,x,y,PT_NTRO);
kill_part(r>>8);
}
if((r&0xFF)==PT_O2);
but I'm unsure.