From: FruitieX Date: Mon, 29 Nov 2010 18:57:22 +0000 (+0200) Subject: show the dot color correctly in the menu preview as well X-Git-Tag: xonotic-v0.1.0preview~94^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ad4e96a559f12189850f449c4d028099a004be63;p=xonotic%2Fxonotic-data.pk3dir.git show the dot color correctly in the menu preview as well --- diff --git a/qcsrc/menu/xonotic/crosshairbutton.c b/qcsrc/menu/xonotic/crosshairbutton.c index 26b9bcb8f..434a7bc87 100644 --- a/qcsrc/menu/xonotic/crosshairbutton.c +++ b/qcsrc/menu/xonotic/crosshairbutton.c @@ -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