diff options
Diffstat (limited to 'engines/tsage')
-rw-r--r-- | engines/tsage/converse.cpp | 1 | ||||
-rw-r--r-- | engines/tsage/core.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/engines/tsage/converse.cpp b/engines/tsage/converse.cpp index 18ba28da63..57c5c48975 100644 --- a/engines/tsage/converse.cpp +++ b/engines/tsage/converse.cpp @@ -791,7 +791,6 @@ Speaker::Speaker() : EventHandler() { _fontNumber = 2; _textMode = ALIGN_LEFT; _color1 = _color2 = _color3 = _globals->_scenePalette._colors.foreground; - _color2 = _color3 = 0; _action = NULL; _speakerName = "SPEAKER"; } diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp index d064917c36..1b38599df1 100644 --- a/engines/tsage/core.cpp +++ b/engines/tsage/core.cpp @@ -1300,7 +1300,7 @@ uint8 ScenePalette::indexOf(uint r, uint g, uint b, int threshold) { int bDiff = abs(ib - (int)b); int idxThreshold = rDiff * rDiff + gDiff * gDiff + bDiff * bDiff; - if (idxThreshold <= threshold) { + if (idxThreshold < threshold) { threshold = idxThreshold; palIndex = i; } |