]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix two bugs of crosshair button. Did anyone EVER test this one?
authorRudolf Polzer <divverent@xonotic.org>
Fri, 25 Nov 2011 15:23:02 +0000 (16:23 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 25 Nov 2011 15:23:02 +0000 (16:23 +0100)
qcsrc/menu/xonotic/crosshairbutton.c
qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c

index 434a7bc87fabe63b7ac17a9846f44a6772d4a3e3..caaa1232211c8cd51b84dc7c5af073e2de0d7bed 100644 (file)
@@ -34,7 +34,7 @@ void XonoticCrosshairButton_configureXonoticCrosshairButton(entity me, float the
        me.configureRadioButton(me, string_null, me.fontSize, me.image, theGroup, 0);
        me.srcMulti = 1;
        if(me.cvarValueFloat == -1)
-               me.src3 = strzone(strcat("/gfx/crosshair", cvar("crosshair")));
+               me.src3 = strzone(strcat("/gfx/crosshair", cvar_string("crosshair")));
        else
                me.src3 = strzone(strcat("/gfx/crosshair", ftos(me.cvarValueFloat)));
        me.src4 = "/gfx/crosshairdot";
index caa986d4362a081bd6270f704d60b0e581c23c02..6748ef875f75f9e1627dda3b7c8d2072e70f6450 100644 (file)
@@ -117,7 +117,7 @@ void XonoticPlayerSettingsTab_fill(entity me)
                }
                // show a larger preview of the selected crosshair
                me.TDempty(me, 0.2);
-               me.TDNoMargin(me, 2, 2 / 5, e = makeXonoticCrosshairButton(4, -1), '1 1 0'); // crosshair -1 makes this a preview
+               me.TDNoMargin(me, 2, 2 / 5, e = makeXonoticCrosshairButton(7, -1), '1 1 0'); // crosshair -1 makes this a preview
                setDependent(e, "crosshair_per_weapon", 0, 0);
        me.TR(me);
                me.TDempty(me, 0.2);