mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 13:00:59 +00:00
- amend last commit: rename the variable to something slightly more meaningful
This commit is contained in:
parent
28f7728980
commit
54a630c3cf
1 changed files with 2 additions and 2 deletions
|
@ -360,8 +360,8 @@ void FPNGTexture::ReadAlphaRemap(FileReader *lump, uint8_t *alpharemap)
|
||||||
uint8_t r = lump->ReadUInt8();
|
uint8_t r = lump->ReadUInt8();
|
||||||
uint8_t g = lump->ReadUInt8();
|
uint8_t g = lump->ReadUInt8();
|
||||||
uint8_t b = lump->ReadUInt8();
|
uint8_t b = lump->ReadUInt8();
|
||||||
int ti = PaletteMap ? PaletteMap[i] : i;
|
int palmap = PaletteMap ? PaletteMap[i] : i;
|
||||||
alpharemap[i] = ti == 0 ? 0 : Luminance(r, g, b);
|
alpharemap[i] = palmap == 0 ? 0 : Luminance(r, g, b);
|
||||||
}
|
}
|
||||||
lump->Seek(p, FileReader::SeekSet);
|
lump->Seek(p, FileReader::SeekSet);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue