From afe0ea351667191608379c62a305698a1d7507ee Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 26 Dec 2014 00:51:47 +0100 Subject: [PATCH] Reload Team slider value when switching gametype --- qcsrc/menu/xonotic/dialog_multiplayer_create.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_create.c b/qcsrc/menu/xonotic/dialog_multiplayer_create.c index 8ae9107a9..cc57e5438 100644 --- a/qcsrc/menu/xonotic/dialog_multiplayer_create.c +++ b/qcsrc/menu/xonotic/dialog_multiplayer_create.c @@ -204,7 +204,8 @@ void XonoticServerCreateTab_gameTypeChangeNotify(entity me) default: x = FALSE; e.configureXonoticTextSlider(e, string_null); break; } e.configureXonoticTextSliderValues(e); - e.value = 0; + if(!x) + e.value = 0; me.sliderTeams.disabled = me.labelTeams.disabled = !x; me.mapListBox.refilter(me.mapListBox); -- 2.39.2