Fix in-game 2d map view line colors when using palettes that differ completely from Duke3D's palette

git-svn-id: https://svn.eduke32.com/eduke32@6461 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-10-08 22:15:51 +00:00
parent 938d444b35
commit ff8d608caf
2 changed files with 12 additions and 6 deletions

View file

@ -294,6 +294,12 @@ void E_PostLoadPalette(void)
redcol = getclosestcol(255, 0, 0);
for (size_t i = 0; i<16; i++)
{
palette_t *edcol = (palette_t *) &vgapal16[4*i];
editorcolors[i] = getclosestcol_lim(edcol->b, edcol->g, edcol->r, 239);
}
// Bmemset(PaletteIndexFullbrights, 0, sizeof(PaletteIndexFullbrights));
for (bssize_t c = 0; c < 255; ++c) // skipping transparent color
{