]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Changed the menu order to show mayhems above unpopular modes. Included
authordrjaska <drjaska83@gmail.com>
Sun, 7 Mar 2021 02:59:16 +0000 (04:59 +0200)
committerdrjaska <drjaska83@gmail.com>
Sun, 7 Mar 2021 02:59:16 +0000 (04:59 +0200)
tdm in the force support hook so now mayhems are supported if either DM
or TDM are supported.

qcsrc/common/gamemodes/gamemode/mayhem/mayhem.qh
qcsrc/menu/xonotic/util.qc

index 19569ecabe243908c20bf77a726c3b188df0248a..6f9dd4a2fa27281220c107c10ff9d506c3220fa6 100644 (file)
@@ -16,6 +16,9 @@ CLASS(mayhem, Gametype)
         if(!(MapInfo_Map_supportedGametypes & this.m_flags) && (MapInfo_Map_supportedGametypes & MAPINFO_TYPE_DEATHMATCH.m_flags)){
                return true;
         }
+        if(!(MapInfo_Map_supportedGametypes & this.m_flags) && (MapInfo_Map_supportedGametypes & MAPINFO_TYPE_TEAM_DEATHMATCH.m_flags)){
+               return true;
+        }
         return false;          
     }
     ATTRIB(mayhem, m_legacydefaults, string, "30 20 0");
index 7e0034bd47d147807b4cbfa5765dd3909ff692a3..90bc3a1bd7520687c9dcb8ff2d7cb2358e42603b 100644 (file)
@@ -674,6 +674,8 @@ float updateCompression()
        GAMETYPE(MAPINFO_TYPE_CTF) \
        GAMETYPE(MAPINFO_TYPE_CA) \
        GAMETYPE(MAPINFO_TYPE_FREEZETAG) \
+       GAMETYPE(MAPINFO_TYPE_TEAM_MAYHEM) \
+       GAMETYPE(MAPINFO_TYPE_MAYHEM) \
        GAMETYPE(MAPINFO_TYPE_KEEPAWAY) \
        GAMETYPE(MAPINFO_TYPE_KEYHUNT) \
        GAMETYPE(MAPINFO_TYPE_LMS) \
@@ -681,8 +683,6 @@ float updateCompression()
        GAMETYPE(MAPINFO_TYPE_NEXBALL) \
        GAMETYPE(MAPINFO_TYPE_ONSLAUGHT) \
        GAMETYPE(MAPINFO_TYPE_ASSAULT) \
-       GAMETYPE(MAPINFO_TYPE_MAYHEM) \
-       GAMETYPE(MAPINFO_TYPE_TEAM_MAYHEM) \
        /* GAMETYPE(MAPINFO_TYPE_DUEL) */ \
        /* GAMETYPE(MAPINFO_TYPE_INVASION) */ \
        /**/