Skip to content

Instantly share code, notes, and snippets.

@zc00gii
Created September 26, 2010 06:51
Show Gist options
  • Save zc00gii/597668 to your computer and use it in GitHub Desktop.
Save zc00gii/597668 to your computer and use it in GitHub Desktop.
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))
{
if((r>>8)>=NPART || !r)
continue;
if((r&0xFF)==PT_SPRK || (parts[i].temp>=(273.15+200.0f)) && 1>(rand()%15)) // this if case
{
if(tempu1>40) {
tempu1 = 39;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment