Merge branch 'master' into develop
This commit is contained in:
commit
e78dcae851
@ -106,10 +106,9 @@ int Element_FILT::interactWavelengths(Particle* cpart, int origWl)
|
|||||||
return (~origWl) & mask; // Invert colours
|
return (~origWl) & mask; // Invert colours
|
||||||
case 9:
|
case 9:
|
||||||
{
|
{
|
||||||
int t1, t2, t3, r;
|
int t1 = (origWl & 0x0000FF)+(rand()%5)-2;
|
||||||
t1 = (origWl & 0x0000FF)+(rand()%5)-2;
|
int t2 = ((origWl & 0x00FF00)>>8)+(rand()%5)-2;
|
||||||
t1 = ((origWl & 0x00FF00)>>8)+(rand()%5)-2;
|
int t3 = ((origWl & 0xFF0000)>>16)+(rand()%5)-2;
|
||||||
t3 = ((origWl & 0xFF0000)>>16)+(rand()%5)-2;
|
|
||||||
return (origWl & 0xFF000000) | (t3<<16) | (t2<<8) | t1;
|
return (origWl & 0xFF000000) | (t3<<16) | (t2<<8) | t1;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user