make sure no effect FILT mode doesn't affect BRAY
This commit is contained in:
parent
462bb78f3d
commit
8dad0483cf
@ -98,10 +98,13 @@ 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
|
||||||
colored = Element_FILT::interactWavelengths(&parts[r>>8], colored);
|
if (parts[r>>8].tmp != 6)
|
||||||
if (!colored)
|
{
|
||||||
break;
|
colored = Element_FILT::interactWavelengths(&parts[r>>8], colored);
|
||||||
//this if prevents BRAY from stopping on certain materials
|
if (!colored)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
//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) {
|
||||||
sim->create_part(-1, x+nxi+nxx, y+nyi+nyy, PT_SPRK);
|
sim->create_part(-1, x+nxi+nxx, y+nyi+nyy, PT_SPRK);
|
||||||
|
Reference in New Issue
Block a user