mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-26 11:46:54 +00:00
_shadowPalette should be cleared for SCUMM 7 games too.
svn-id: r15283
This commit is contained in:
parent
4e24375cae
commit
a53d6ebcf0
@ -1782,7 +1782,12 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) {
|
||||
_actors[i].hideActor();
|
||||
}
|
||||
|
||||
if (_version < 7) {
|
||||
if (_version >= 7) {
|
||||
// Set the shadow palette(s) to all black. This fixes
|
||||
// bug #795940, and actually makes some sense (after all,
|
||||
// shadows tend to be rather black, don't they? ;-)
|
||||
memset(_shadowPalette, 0, NUM_SHADOW_PALETTE * 256);
|
||||
} else {
|
||||
for (i = 0; i < 256; i++) {
|
||||
_roomPalette[i] = i;
|
||||
if (_shadowPalette)
|
||||
@ -1790,11 +1795,6 @@ void ScummEngine::startScene(int room, Actor *a, int objectNr) {
|
||||
}
|
||||
if (_features & GF_SMALL_HEADER)
|
||||
setDirtyColors(0, 255);
|
||||
} else if (_version == 8) {
|
||||
// Set the shadow palette(s) to all black. This fixes
|
||||
// bug #795940, and actually makes some sense (after all,
|
||||
// shadows tend to be rather black, don't they? ;-)
|
||||
memset(_shadowPalette, 0, NUM_SHADOW_PALETTE * 256);
|
||||
}
|
||||
|
||||
clearDrawObjectQueue();
|
||||
|
Loading…
Reference in New Issue
Block a user