]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Mutators dialog: arrange weapon checkboxes in 3 columns
authorterencehill <piuntn@gmail.com>
Fri, 15 Jun 2018 22:55:45 +0000 (00:55 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 15 Jun 2018 22:55:45 +0000 (00:55 +0200)
qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc

index 6d974ccb477351e666c5e4972f9a9e50f3de3466..21e7ecadc454fdc7168a1e0c5314892f5d028749 100644 (file)
@@ -252,14 +252,12 @@ void XonoticMutatorsDialog_fill(entity me)
                w = Weapons_from(i);
                if(w.spawnflags & WEP_FLAG_HIDDEN)
                        continue;
-               if((j & 1) == 0)
-                       me.TDempty(me, 0.2);
-               else
+               if ((j % 3) == 0)
                {
                        me.TR(me);
                        me.TDempty(me, 0.4);
                }
-               me.TD(me, 1, 1.7, e = makeXonoticWeaponarenaCheckBox(strzone(w.netname), strzone(w.m_name)));
+               me.TD(me, 1, 1.2, e = makeXonoticWeaponarenaCheckBox(strzone(w.netname), strzone(w.m_name)));
                        setDependentWeird(e, checkCompatibility_weaponarena_weapon);
                ++j;
        }