I am trying to make a clone display where the clone is the colour of its seleted element... this is my code
if (cmode == CM_CLONE){ if (t==PT_CLNE||t==PT_BCLN||t==PT_PCLN||t==PT_PBCN||t==PT_GSCL||t==PT_LQCL||t==PT_PDCL){ if (parts[i].ctype){ int r = ( ptypes[parts[i].ctype].pcolors >> 16 ) & 0xFF; int g = ( ptypes[parts[i].ctype].pcolors >> 8 ) & 0xFF; int b = ptypes[parts[i].ctype].pcolors & 0xFF; parts[i].dcolour = (r,g,b); - Is usually blendpixel but I tested this... } } }
it didnt work even without it... i just added it so that it wont run useless code... also that will return true if the integer has a value and 0 is not a value so it shoudl work anyway...