From bb29cdc899dcf48fb67b369273194dab32843665 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Tue, 28 Oct 2014 22:41:14 +0100 Subject: SCI: color matching - remove debug code --- engines/sci/graphics/palette.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'engines') 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(_sysPalette.colors[colorNr].g - matchGreen); differenceBlue = (uint8)ABS(_sysPalette.colors[colorNr].b - matchBlue); differenceTotal = differenceRed + differenceGreen + differenceBlue; - if (differenceTotal < 0) { - differenceTotal = differenceTotal; - } if (differenceTotal <= bestDifference) { bestDifference = differenceTotal; bestColor = colorNr; -- cgit v1.2.3