]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
more crosshair bugfixes; show the 6 new ones
authorRudolf Polzer <divverent@alientrap.org>
Tue, 27 Dec 2011 20:56:58 +0000 (21:56 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 27 Dec 2011 20:56:58 +0000 (21:56 +0100)
qcsrc/menu/xonotic/crosshairbutton.c
qcsrc/menu/xonotic/dialog_multiplayer_playersetup.c

index c3921c3a41cf22d2fbd4c63b17faf86fea52dd3b..9456cd66da2d2f22fdb48dd0db6d9560e1ccc086 100644 (file)
@@ -110,7 +110,11 @@ void XonoticCrosshairButton_draw(entity me)
                */
        }
        else // show the crosshair picker at full size
-               sz = '0.95 0.95 0';
+       {
+               sz = sz * (0.95 / sz_x);
+               if(sz_y > 0.95)
+                       sz = sz * (0.95 / sz_y);
+       }
 
        draw_Picture('0.5 0.5 0' - 0.5 * sz, me.src3, sz, rgb, a);
        if(cvar("crosshair_dot"))
index e8096b1b9ae0bd417a67db68b2b4863b5d1151f5..d4211de0b28a94a908a4cc095b8d53ddecc5ac2f 100644 (file)
@@ -113,8 +113,8 @@ void XonoticPlayerSettingsTab_fill(entity me)
                me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "crosshair_per_weapon", _("Per weapon")));
        me.TR(me);
                me.TDempty(me, 0.2);
-               for(i = 1; i <= 10; ++i) {
-                       me.TDNoMargin(me, 1, 2 / 10, e = makeXonoticCrosshairButton(3, i), '1 1 0');
+               for(i = 1; i <= 13; ++i) {
+                       me.TDNoMargin(me, 1, 2 / 13, e = makeXonoticCrosshairButton(3, i), '1 1 0');
                        setDependent(e, "crosshair_per_weapon", 0, 0);
                }
                // show a larger preview of the selected crosshair
@@ -123,8 +123,8 @@ void XonoticPlayerSettingsTab_fill(entity me)
                setDependent(e, "crosshair_per_weapon", 0, 0);
        me.TR(me);
                me.TDempty(me, 0.2);
-               for(i = 11; i <= 20; ++i) {
-                       me.TDNoMargin(me, 1, 2 / 10, e = makeXonoticCrosshairButton(3, i), '1 1 0');
+               for(i = 14; i <= 26; ++i) {
+                       me.TDNoMargin(me, 1, 2 / 13, e = makeXonoticCrosshairButton(3, i), '1 1 0');
                        setDependent(e, "crosshair_per_weapon", 0, 0);
                }
        me.TR(me);