if (parts[i].temp>500){
rx=(rand()%3)-1+x;
ry=(rand()%3)-1+y;
if (pmap[ry][rx]&0xFF==PT_NONE){
r=create_part(-1,rx,ry,PT_PLSM);
parts[r].life=1000;
parts[r].temp=3500;
}
}
if (parts[i].temp>500){
rx=(rand()%3)-1+x;
ry=(rand()%3)-1+y;
if ((pmap[ry][rx]&0xFF)==PT_NONE){
r=create_part(-1,rx,ry,PT_PLSM);
if (r>=0)
{
parts[r].life=1000;
parts[r].temp=3500;
}
}
}