diff options
Diffstat (limited to 'engines')
-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; |