]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
Actually fix color not being applied correctly
[xonotic/darkplaces.git] / host_cmd.c
index 05b11f42e491eeac52eb49991b42424c50013df7..9aa2d1397272b3375cd8cf5b5b40e34033c5fc16 100644 (file)
@@ -231,6 +231,12 @@ static void CL_Color_f(cmd_state_t *cmd)
         * happens twice here. Perhaps find a cleaner way?
         */
 
+       top = top >= 0 ? bottom : topcolor.integer;
+       bottom = bottom >= 0 ? bottom : bottomcolor.integer;
+
+       top &= 15;
+       bottom &= 15;
+
        // LadyHavoc: allowing skin colormaps 14 and 15 by commenting this out
        //if (top > 13)
        //      top = 13;