#include < element.h >
int update_AMTR(UPDATE_FUNC_ARGS) {
int r, rx, ry;
for (rx=-1; rx<2; rx++)<br />
for (ry=-1; ry<2; ry++)<br />
if (x+rx>=0 && y+ry>0 && x+rx
{
r = pmap[y+ry][x+rx];
if ((r>>8)>=NPART || !r)
continue;
if ((r&0xFF)!=PT_AMTR && (r&0xFF)!=PT_DMND && (r&0xFF)!=PT_CLNE && (r&0xFF)!=PT_PCLN && (r&0xFF)!=PT_NONE && (r&0xFF)!=PT_PHOT && (r&0xFF)!=PT_VOID && (r&0xFF)!=PT_BHOL && (r&0xFF)!=PT_PRTI && (r&0xFF)!=PT_PRTO)
{
create_part(i, x, y, PT_PHOT);
parts[i].temp = MAX_TEMP;
create_part(r>>8, x+rx, y+ry, PT_PHOT);
parts[r>>8].temp = MAX_TEMP;
pv[y/CELL][x/CELL] -= 5.0f;
return 1;
}
}
return 0;
}