- amend last commit: rename the variable to something slightly more meaningful

This commit is contained in:
Rachael Alexanderson 2020-08-25 19:48:25 -04:00
parent 28f7728980
commit 54a630c3cf

View file

@ -360,8 +360,8 @@ void FPNGTexture::ReadAlphaRemap(FileReader *lump, uint8_t *alpharemap)
uint8_t r = lump->ReadUInt8();
uint8_t g = lump->ReadUInt8();
uint8_t b = lump->ReadUInt8();
int ti = PaletteMap ? PaletteMap[i] : i;
alpharemap[i] = ti == 0 ? 0 : Luminance(r, g, b);
int palmap = PaletteMap ? PaletteMap[i] : i;
alpharemap[i] = palmap == 0 ? 0 : Luminance(r, g, b);
}
lump->Seek(p, FileReader::SeekSet);
}