Fixed: 0 was accidentally not allowed as transparent for grayscale

- I don't know what I was thinking when I wrote that.
This commit is contained in:
Randy Heit 2016-01-25 21:44:08 -06:00
parent 450b6de384
commit 9f8dee45c4

View file

@ -302,7 +302,7 @@ FPNGTexture::FPNGTexture (FileReader &lump, int lumpnum, const FString &filename
case 0: // Grayscale
if (!bAlphaTexture)
{
if (colortype == 0 && HaveTrans && NonPaletteTrans[0] != 0 && NonPaletteTrans[0] < 256)
if (colortype == 0 && HaveTrans && NonPaletteTrans[0] < 256)
{
bMasked = true;
PaletteSize = 256;