]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/crosshairbutton.c
fix display of the welcome text
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / crosshairbutton.c
index 1345517264d73bbfd19e265d663942d133b326cd..434a7bc87fabe63b7ac17a9846f44a6772d4a3e3 100644 (file)
@@ -84,6 +84,7 @@ void XonoticCrosshairButton_draw(entity me)
                        strunzone(me.src3);
                me.src3 = strzone(strcat("/gfx/crosshair", cvar_string("crosshair")));
                me.focused = 1;
+               me.checked = 0;
        }
 
        SUPER(XonoticCrosshairButton).draw(me);
@@ -103,6 +104,10 @@ void XonoticCrosshairButton_draw(entity me)
 
        draw_Picture('0.5 0.5 0' - 0.5 * sz, me.src3, sz, rgb, a);
        if(cvar("crosshair_dot"))
+    {
+        if(cvar_string("crosshair_dot_color") != "0")
+            rgb = stov(cvar_string("crosshair_dot_color"));
                draw_Picture('0.5 0.5 0' - 0.5 * sz * cvar("crosshair_dot_size"), me.src4, sz * cvar("crosshair_dot_size"), rgb, a * cvar("crosshair_dot_alpha"));
+    }
 }
 #endif