make sure no effect FILT mode doesn't affect BRAY

This commit is contained in:
jacob1 2014-04-29 20:43:16 -04:00
parent 462bb78f3d
commit 8dad0483cf

View File

@ -98,9 +98,12 @@ int Element_ARAY::update(UPDATE_FUNC_ARGS)
break; break;
} }
} else if ((r&0xFF)==PT_FILT) {//get color if passed through FILT } else if ((r&0xFF)==PT_FILT) {//get color if passed through FILT
if (parts[r>>8].tmp != 6)
{
colored = Element_FILT::interactWavelengths(&parts[r>>8], colored); colored = Element_FILT::interactWavelengths(&parts[r>>8], colored);
if (!colored) if (!colored)
break; break;
}
//this if prevents BRAY from stopping on certain materials //this if prevents BRAY from stopping on certain materials
} else if ((r&0xFF)!=PT_STOR && (r&0xFF)!=PT_INWR && ((r&0xFF)!=PT_SPRK || parts[r>>8].ctype!=PT_INWR) && (r&0xFF)!=PT_ARAY && (r&0xFF)!=PT_WIFI && !((r&0xFF)==PT_SWCH && parts[r>>8].life>=10)) { } else if ((r&0xFF)!=PT_STOR && (r&0xFF)!=PT_INWR && ((r&0xFF)!=PT_SPRK || parts[r>>8].ctype!=PT_INWR) && (r&0xFF)!=PT_ARAY && (r&0xFF)!=PT_WIFI && !((r&0xFF)==PT_SWCH && parts[r>>8].life>=10)) {
if (nyy!=0 || nxx!=0) { if (nyy!=0 || nxx!=0) {