int np = create_part(-1, x+rx, y+ry, parts[i].ctype);
if (np!=-1)
{
parts[np].vx = rx*3;
parts[np].vy = ry*3;
}
r = pmap[y+ry][x+rx];
if (!r)
r = photons[y+ry][x+rx];
if (!r)
continue;
if ((r&0xFF)==PT_GLAS)
{
fire_r[y/CELL][x/CELL] += rand()%200; //D: Doesn't work with OpenGL, also shouldn't be here
fire_g[y/CELL][x/CELL] += rand()%200;
fire_b[y/CELL][x/CELL] += rand()%200;
for (rrx=-1; rrx<=1; rrx++)<br/> {
for (rry=-1; rry<=1; rry++)<br/> {
if (x+rx+rrx>=0 && y+ry+rry>=0 && x+rx+rrx nb = create_part(-1, x+rx+rrx, y+ry+rry, PT_BOMB);
if (nb!=-1) {
parts[nb].tmp = 1;
parts[nb].life = 50;
parts[nb].temp = 400.0f;
parts[nb].vx = rand()%20-10;
parts[nb].vy = rand()%20-10;
}
}
}
}
kill_part(i);
return 1;
}