Fix METL heating NTCT or PTCT through insulator

This commit is contained in:
Simon 2010-09-06 14:30:09 +01:00
parent e4d256a0ee
commit 6b27bc06ff

View File

@ -938,7 +938,7 @@ void update_particles_i(pixel *vid, int start, int inc)
r = pmap[y+ny][x+nx]; r = pmap[y+ny][x+nx];
if((r>>8)>=NPART || !r) if((r>>8)>=NPART || !r)
continue; continue;
if((r&0xFF)==PT_SPRK && parts[r>>8].ctype==PT_METL) if((r&0xFF)==PT_SPRK && parts[r>>8].ctype==PT_METL && pavg(i, r>>8)!=PT_INSL)
{ {
parts[i].temp = 473.0f; parts[i].temp = 473.0f;
} }