]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
show the dot color correctly in the menu preview as well
authorFruitieX <fruitiex@gmail.com>
Mon, 29 Nov 2010 18:57:22 +0000 (20:57 +0200)
committerFruitieX <fruitiex@gmail.com>
Mon, 29 Nov 2010 18:57:22 +0000 (20:57 +0200)
qcsrc/menu/xonotic/crosshairbutton.c

index 26b9bcb8f52361d9a60b9ea794ec3de95a7be8a3..434a7bc87fabe63b7ac17a9846f44a6772d4a3e3 100644 (file)
@@ -104,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