Removed some code that was added earlier to deal with dimming/undimming the

palette when pausing the game in a mid-fade. The game can only be paused in
mid-fade from the outside, and then the palette isn't dimmed/undimmed.

svn-id: r34958
This commit is contained in:
Torbjörn Andersson 2008-11-09 14:35:45 +00:00
parent d896c892e5
commit b7991b6ad8

View File

@ -164,11 +164,8 @@ void Screen::setPalette(int16 startEntry, int16 noEntries, byte *colourTable, ui
void Screen::dimPalette(bool dim) {
if (dim != _dimPalette) {
_dimPalette = dim;
// If the palette is in the middle of fading, don't update it.
if (_fadeStatus != RDFADE_DOWN && _fadeStatus != RDFADE_UP) {
setSystemPalette(_palette, 0, 256);
setNeedFullRedraw();
}
setSystemPalette(_palette, 0, 256);
setNeedFullRedraw();
}
}