]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix some parts about hidden/forbidden maps
authorRudolf Polzer <divverent@xonotic.org>
Sun, 24 Feb 2013 18:56:46 +0000 (19:56 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 24 Feb 2013 18:56:46 +0000 (19:56 +0100)
qcsrc/menu/xonotic/maplist.c
qcsrc/server/g_world.qc

index c37481b9763763ea066f942639a01604a7f0e050..b5af66126f7fbec2e6b6d3b93c77077eaa678cbf 100644 (file)
@@ -244,7 +244,7 @@ void MapList_All(entity btn, entity me)
 {
        float i;
        string s;
-       MapInfo_FilterGametype(MAPINFO_TYPE_ALL, 0, 0, MAPINFO_FLAG_FORBIDDEN | MAPINFO_FLAG_HIDDEN, 0); // all
+       MapInfo_FilterGametype(MAPINFO_TYPE_ALL, 0, 0, MapInfo_ForbiddenFlags(), 0); // all
        s = "";
        for(i = 0; i < MapInfo_count; ++i)
                s = strcat(s, " ", MapInfo_BSPName_ByID(i));
index 5e5fc4c7d49317c512197682e60c0bc49be8ba37..d67ef26eba5ca4904655eab2fb73fd0e0c08f549 100644 (file)
@@ -838,7 +838,7 @@ void spawnfunc_worldspawn (void)
        for(i = 0, j = 0; i < MapInfo_count; ++i)
        {
                if(MapInfo_Get_ByID(i))
-                       if not(MapInfo_Map_flags & (MAPINFO_FLAG_HIDDEN | MAPINFO_FLAG_FORBIDDEN))
+                       if not(MapInfo_Map_flags & MapInfo_ForbiddenFlags())
                        {
                                if(mod(i, 2))
                                        col = "^2";