Skip to content

Commit

Permalink
Fixed inconsistent color remapping via translation ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Dec 17, 2017
1 parent ceffe1b commit 6db8e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/r_data/r_translate.cpp
Expand Up @@ -368,7 +368,7 @@ void FRemapTable::AddIndexRange(int start, int end, int pal1, int pal2)
palstep = (pal2 - palcol) / (end - start);
for (int i = start; i <= end; palcol += palstep, ++i)
{
int j = GPalette.Remap[i], k = GPalette.Remap[int(palcol)];
int j = GPalette.Remap[i], k = GPalette.Remap[int(round(palcol))];
Remap[j] = k;
Palette[j] = GPalette.BaseColors[k];
Palette[j].a = j == 0 ? 0 : 255;
Expand Down

0 comments on commit 6db8e71

Please sign in to comment.