mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 19:51:45 +02:00
Prevent FILT being rendered as black if the only wavelengths present are invalid
This commit is contained in:
@@ -119,7 +119,7 @@ int Element_FILT::interactWavelengths(Particle* cpart, int origWl)
|
|||||||
//#TPT-Directive ElementHeader Element_FILT static int getWavelengths(Particle* cpart)
|
//#TPT-Directive ElementHeader Element_FILT static int getWavelengths(Particle* cpart)
|
||||||
int Element_FILT::getWavelengths(Particle* cpart)
|
int Element_FILT::getWavelengths(Particle* cpart)
|
||||||
{
|
{
|
||||||
if (cpart->ctype)
|
if (cpart->ctype&0x3FFFFFFF)
|
||||||
{
|
{
|
||||||
return cpart->ctype;
|
return cpart->ctype;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user