]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reload Team slider value when switching gametype
authorterencehill <piuntn@gmail.com>
Thu, 25 Dec 2014 23:51:47 +0000 (00:51 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 25 Dec 2014 23:51:47 +0000 (00:51 +0100)
qcsrc/menu/xonotic/dialog_multiplayer_create.c

index 8ae9107a9af0d53c4c02968e5fe599099890b281..cc57e5438911fd8bffa0c795e81bc0cc0e4b0dac 100644 (file)
@@ -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);