- Fixed: r_translate.cpp:SetRange() did not set the true color palette entry for single-entry ranges.

SVN r3608 (trunk)
This commit is contained in:
Randy Heit 2012-05-01 01:47:31 +00:00
parent 192839a436
commit c676f97fd8

View file

@ -864,7 +864,11 @@ static bool SetRange(FRemapTable *table, int start, int end, int first, int last
bool identity = true;
if (start == end)
{
table->Remap[start] = (first + last) / 2;
int pi = (first + last) / 2;
table->Remap[start] = GPalette.Remap[pi];
identity &= (pi == start);
table->Palette[start] = GPalette.BaseColors[table->Remap[start]];
table->Palette[start].a = 255;
}
else
{