fix issue with FILT PHOT scattering
This commit is contained in:
parent
b4761e47dd
commit
79a2ac3103
@ -106,10 +106,9 @@ int Element_FILT::interactWavelengths(Particle* cpart, int origWl)
|
||||
return (~origWl) & mask; // Invert colours
|
||||
case 9:
|
||||
{
|
||||
int t1, t2, t3, r;
|
||||
t1 = (origWl & 0x0000FF)+(rand()%5)-2;
|
||||
t1 = ((origWl & 0x00FF00)>>8)+(rand()%5)-2;
|
||||
t3 = ((origWl & 0xFF0000)>>16)+(rand()%5)-2;
|
||||
int t1 = (origWl & 0x0000FF)+(rand()%5)-2;
|
||||
int t2 = ((origWl & 0x00FF00)>>8)+(rand()%5)-2;
|
||||
int t3 = ((origWl & 0xFF0000)>>16)+(rand()%5)-2;
|
||||
return (origWl & 0xFF000000) | (t3<<16) | (t2<<8) | t1;
|
||||
}
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user