]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a small problem with teams slider
authorSamual Lenks <samual@xonotic.org>
Fri, 20 Dec 2013 03:56:36 +0000 (22:56 -0500)
committerSamual Lenks <samual@xonotic.org>
Fri, 20 Dec 2013 03:56:36 +0000 (22:56 -0500)
qcsrc/common/util.qc
qcsrc/common/util.qh
qcsrc/menu/xonotic/dialog_multiplayer_create.c

index dcf1142c45c729c04cec476dd8dcf90097e9f799..2cfdbfd678071234a779ecfe660e6a108c8917bd 100644 (file)
@@ -2575,7 +2575,6 @@ void FindConnectedComponent(entity e, .entity fld, findNextEntityNearFunction_t
 }
 
 // todo: this sucks, lets find a better way to do backtraces?
-#ifndef MENUQC
 void backtrace(string msg)
 {
        float dev, war;
@@ -2597,7 +2596,6 @@ void backtrace(string msg)
        cvar_set("developer", ftos(dev));
        cvar_set("prvm_backtraceforwarnings", ftos(war));
 }
-#endif
 
 // color code replace, place inside of sprintf and parse the string
 string CCR(string input)
index 3cb3b35d2b034d133fa24faf69ed9663b32bc9be..f16cd93183b97d0622bdd9ed0d4a979088614539 100644 (file)
@@ -368,9 +368,8 @@ void FindConnectedComponent(entity e, .entity fld, findNextEntityNearFunction_t
 // expand multiple arguments into one argument by stripping parenthesis
 #define XPD(...) __VA_ARGS__
 
-#ifndef MENUQC
 void backtrace(string msg);
-#endif
+
 
 // color code replace, place inside of sprintf and parse the string... defaults described as constants
 // foreground/normal colors
index dfdc046db800bc1c483e4a6f9e7e79a5e535736d..5ae278d3ec1f88ee8e2dccda804f5c6312a617f7 100644 (file)
@@ -206,9 +206,9 @@ void XonoticServerCreateTab_gameTypeChangeNotify(entity me)
                default: x = FALSE; e.configureXonoticTextSlider(e, string_null); break;
        }
        e.configureXonoticTextSliderValues(e);
-       e.setText(e, _("Default")); 
+       e.value = 0;
        me.sliderTeams.disabled = me.labelTeams.disabled = !x;
-       
+
        me.mapListBox.refilter(me.mapListBox);
 }