diff options
author | Martin Kiewitz | 2014-10-28 22:41:14 +0100 |
---|---|---|
committer | Martin Kiewitz | 2014-10-28 22:41:14 +0100 |
commit | bb29cdc899dcf48fb67b369273194dab32843665 (patch) | |
tree | 5babb027ed280f2020e2b26d916e824b02980e05 | |
parent | 28967b617f53dbda91d549007dc8af2581dbae3a (diff) | |
download | scummvm-rg350-bb29cdc899dcf48fb67b369273194dab32843665.tar.gz scummvm-rg350-bb29cdc899dcf48fb67b369273194dab32843665.tar.bz2 scummvm-rg350-bb29cdc899dcf48fb67b369273194dab32843665.zip |
SCI: color matching - remove debug code
-rw-r--r-- | engines/sci/graphics/palette.cpp | 3 |
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; |