]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Trying to fix the "custom" problem...
authorSamual Lenks <samual@xonotic.org>
Sun, 24 Nov 2013 23:07:42 +0000 (18:07 -0500)
committerSamual Lenks <samual@xonotic.org>
Sun, 24 Nov 2013 23:07:42 +0000 (18:07 -0500)
qcsrc/menu/xonotic/dialog_multiplayer_create.c

index afbd7149703e8c076e25e5e01f89bf8598ac2c74..cb00ea13e40fe4d64b3717a456142952e39b6ced 100644 (file)
@@ -108,10 +108,10 @@ void XonoticServerCreateTab_fill(entity me)
        me.TR(me);
                me.TD(me, 1, 1, me.labelTeams = makeXonoticTextLabel(0, _("Teams:")));
                me.TD(me, 1, 2, e = me.sliderTeams = makeXonoticTextSlider(string_null));
-                       e.addValue(e, "Default", "0");
-                       e.addValue(e, "2 teams", "2");
-                       e.addValue(e, "3 teams", "3");
-                       e.addValue(e, "4 teams", "4");
+                       e.addValue(e, _("Default"), "0");
+                       e.addValue(e, _("2 teams"), "2");
+                       e.addValue(e, _("3 teams"), "3");
+                       e.addValue(e, _("4 teams"), "4");
                        e.configureXonoticTextSliderValues(e);
        me.TR(me);
                me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Player slots:")));
@@ -212,7 +212,8 @@ void XonoticServerCreateTab_gameTypeChangeNotify(entity me)
 
                default: x = FALSE; e.configureXonoticTextSlider(e, string_null); break;
        }
-       me.sliderTeams.configureXonoticTextSliderValues(e);
+       e.configureXonoticTextSliderValues(e);
+       e.setText(e, _("Default")); 
        me.sliderTeams.disabled = me.labelTeams.disabled = !x;
        
        me.mapListBox.refilter(me.mapListBox);