]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/crosshairbutton.c
Use only one cvar to define the crosshair color and add the color picker in the menu...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / crosshairbutton.c
index 645b9320750fcedced0f2c6b7f0ec5947a7af888..7ed683d01e11c1b8107f38ed9e36841e3be70dae 100644 (file)
@@ -65,7 +65,7 @@ void XonoticCrosshairButton_draw(entity me)
        vector sz, rgb;
        float a;
 
-       rgb = eX * cvar("crosshair_color_red") + eY * cvar("crosshair_color_green") + eZ * cvar("crosshair_color_blue");
+       rgb = stov(cvar_string("crosshair_color"));
        a = cvar("crosshair_alpha");
 
        if(!me.checked && !me.focused)