My old mod used old code so I have copied the code over to new code and tweaked it slightly however my lava bomb code doesn't work here it is: else if(t==PT_LBMB) { 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_LBMB) { t = parts[i].type = PT_LAVA; parts[i].ctype = PT_BMTL; parts[i].temp = 8500.0f; pv[y/CELL][x/CELL] += 50.0f; } } } Can you help!