diff --git a/src/v_palette.cpp b/src/v_palette.cpp index c47f75370..231e160c0 100644 --- a/src/v_palette.cpp +++ b/src/v_palette.cpp @@ -483,12 +483,12 @@ void InitPalette () { int intensity = (GPalette.BaseColors[c].r * 77 + GPalette.BaseColors[c].g * 143 + - GPalette.BaseColors[c].b * 37) / 255; + GPalette.BaseColors[c].b * 37) / 256; int r = (GPalette.BaseColors[c].r * (31-m) + intensity *m) / 31; int g = (GPalette.BaseColors[c].g * (31-m) + intensity *m) / 31; int b = (GPalette.BaseColors[c].b * (31-m) + intensity *m) / 31; - shade[c] = ColorMatcher.Pick (r, g, b); + shade[c] = ColorMatcher.Pick(r, g, b); } }