Skip to content

Instantly share code, notes, and snippets.

@zc00gii
Created September 27, 2010 00:13
Show Gist options
  • Save zc00gii/598436 to your computer and use it in GitHub Desktop.
Save zc00gii/598436 to your computer and use it in GitHub Desktop.
else if(t==PT_EFSE)
{
for(nx=-2; nx<3; nx++)
for(ny=-2; ny<3; ny++)
if(x+nx>=0 && y+ny>0 &&
x+nx<XRES && y+ny<YRES && (nx || ny))
{
r = pmap[y+ny][x+nx];
if((r>>8)>=NPART || !r)
continue;
if((r&0xFF)==PT_SPRK && parts_avg(i, r>>8)!=PT_INSL) {
t = PT_NONE;
kill_part(i);
r = create_part(-1, x, y, PT_SPRK);
t = PT_SPRK;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment