]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
don't add hidden maps by the "All" button in the menu
authorRudolf Polzer <divverent@xonotic.org>
Sun, 21 Aug 2011 18:22:57 +0000 (20:22 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 21 Aug 2011 18:22:57 +0000 (20:22 +0200)
qcsrc/menu/xonotic/maplist.c

index 69757126b4c2a83fdd945f8eba0fd1b041544e0c..6991667763c82225b98aeae199b05dcd7a3e3f96 100644 (file)
@@ -242,7 +242,7 @@ void MapList_All(entity btn, entity me)
 {
        float i;
        string s;
-       MapInfo_FilterGametype(MAPINFO_TYPE_ALL, 0, 0, MAPINFO_FLAG_FORBIDDEN, 0); // all
+       MapInfo_FilterGametype(MAPINFO_TYPE_ALL, 0, 0, MAPINFO_FLAG_FORBIDDEN | MAPINFO_FLAG_HIDDEN, 0); // all
        s = "";
        for(i = 0; i < MapInfo_count; ++i)
                s = strcat(s, " ", MapInfo_BSPName_ByID(i));