remove a redundant check fixing a gcc warning
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 Dec 2008 22:16:19 +0000 (22:16 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 25 Dec 2008 22:16:19 +0000 (22:16 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8603 d7cf8633-e32d-0410-b094-e92efae38249

console.c

index be3c12c8a816a51817b72751be8a19e9318d9a6b..da0f18a184828ddb8f3df2c3698c76ccbc12b29a 100644 (file)
--- a/console.c
+++ b/console.c
@@ -917,7 +917,7 @@ static char Sys_Con_NearestColor(const unsigned char _r, const unsigned char _g,
                h = (int)(60.0 * (g-b)/(max-min))%360;
        else if(max == g)
                h = (int)(60.0 * (b-r)/(max-min) + 120);
-       else if(max == b)
+       else // if(max == b) redundant check
                h = (int)(60.0 * (r-g)/(max-min) + 240);
 
        if(h < 36) // *red* to orange