[Scummvm-cvs-logs] scummvm master -> 8c07c773886097e6dec989fd88e34d44ea8bba35
Strangerke
Strangerke at scummvm.org
Wed Oct 8 07:40:05 CEST 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
8c07c77388 MADS: Rex - Remove an erroneous assert on newPalIndex
Commit: 8c07c773886097e6dec989fd88e34d44ea8bba35
https://github.com/scummvm/scummvm/commit/8c07c773886097e6dec989fd88e34d44ea8bba35
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-10-08T07:37:44+02:00
Commit Message:
MADS: Rex - Remove an erroneous assert on newPalIndex
Changed paths:
engines/mads/palette.cpp
diff --git a/engines/mads/palette.cpp b/engines/mads/palette.cpp
index eedbf36..c098e23 100644
--- a/engines/mads/palette.cpp
+++ b/engines/mads/palette.cpp
@@ -143,7 +143,7 @@ int PaletteUsage::process(Common::Array<RGB6> &palette, uint flags) {
for (uint palIndex = 0; palIndex < palette.size(); ++palIndex) {
bool changed = false;
- int newPalIndex = -1;
+ int newPalIndex = 0xFF;
int v1 = palRange[palIndex]._v2;
if (palette[v1]._flags & 8) {
@@ -229,7 +229,10 @@ int PaletteUsage::process(Common::Array<RGB6> &palette, uint flags) {
// In at least scene 318, when the doctor knocks you with the blackjack,
// the changed flag can be false
//assert(changed);
- assert(newPalIndex != -1);
+
+ // CHECKME: When pressing on F1 in the first screen, newPalIndex is set to 0xFF at this point
+ // which is a valid value for the index. Maybe a better check would be "< 256" ?
+ //assert(newPalIndex != -1);
int var52 = (noUsageFlag && palette[palIndex]._u2) ? 2 : 0;
More information about the Scummvm-git-logs
mailing list