From: terencehill Date: Thu, 25 Dec 2014 23:51:47 +0000 (+0100) Subject: Reload Team slider value when switching gametype X-Git-Tag: xonotic-v0.8.0~43^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=afe0ea351667191608379c62a305698a1d7507ee;p=xonotic%2Fxonotic-data.pk3dir.git Reload Team slider value when switching gametype --- 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);