- fixed blood translation's alpha so that CreateTexBuffer can assume that all palette entries in translations are correct.

This commit is contained in:
Christoph Oelckers 2017-06-18 09:23:56 +02:00
commit cf1d94c9bb
2 changed files with 2 additions and 21 deletions

View file

@ -757,7 +757,7 @@ int CreateBloodTranslation(PalEntry color)
for (i = 0; i < 256; i++)
{
int bright = MAX(MAX(GPalette.BaseColors[i].r, GPalette.BaseColors[i].g), GPalette.BaseColors[i].b);
PalEntry pe = PalEntry(color.r*bright/255, color.g*bright/255, color.b*bright/255);
PalEntry pe = PalEntry(255, color.r*bright/255, color.g*bright/255, color.b*bright/255);
int entry = ColorMatcher.Pick(pe.r, pe.g, pe.b);
trans->Palette[i] = pe;