]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - console.c
remove a redundant check fixing a gcc warning
[xonotic/darkplaces.git] / 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