- Fixed: restart ccmd did not reset the palette.

SVN r3307 (trunk)
This commit is contained in:
Randy Heit 2011-11-01 01:59:47 +00:00
parent 3401d9f2bb
commit c23b918596

View file

@ -1539,7 +1539,14 @@ void V_Init (bool restart)
} }
screen = new DDummyFrameBuffer (width, height); screen = new DDummyFrameBuffer (width, height);
} }
// Update screen palette when restarting
else
{
PalEntry *palette = screen->GetPalette ();
for (int i = 0; i < 256; ++i)
*palette++ = GPalette.BaseColors[i];
screen->UpdatePalette();
}
BuildTransTable (GPalette.BaseColors); BuildTransTable (GPalette.BaseColors);
} }