aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2014-10-28 22:41:14 +0100
committerMartin Kiewitz2014-10-28 22:41:14 +0100
commitbb29cdc899dcf48fb67b369273194dab32843665 (patch)
tree5babb027ed280f2020e2b26d916e824b02980e05 /engines
parent28967b617f53dbda91d549007dc8af2581dbae3a (diff)
downloadscummvm-rg350-bb29cdc899dcf48fb67b369273194dab32843665.tar.gz
scummvm-rg350-bb29cdc899dcf48fb67b369273194dab32843665.tar.bz2
scummvm-rg350-bb29cdc899dcf48fb67b369273194dab32843665.zip
SCI: color matching - remove debug code
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/palette.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/engines/sci/graphics/palette.cpp b/engines/sci/graphics/palette.cpp
index 4d2c874e04..5058eaa550 100644
--- a/engines/sci/graphics/palette.cpp
+++ b/engines/sci/graphics/palette.cpp
@@ -552,9 +552,6 @@ uint16 GfxPalette::matchColor(byte matchRed, byte matchGreen, byte matchBlue) {
differenceGreen = (uint8)ABS<int8>(_sysPalette.colors[colorNr].g - matchGreen);
differenceBlue = (uint8)ABS<int8>(_sysPalette.colors[colorNr].b - matchBlue);
differenceTotal = differenceRed + differenceGreen + differenceBlue;
- if (differenceTotal < 0) {
- differenceTotal = differenceTotal;
- }
if (differenceTotal <= bestDifference) {
bestDifference = differenceTotal;
bestColor = colorNr;