]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Melee only mutator does not require items in the map
authorMario <mario.mario@y7mail.com>
Sun, 1 Nov 2020 11:08:03 +0000 (21:08 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 1 Nov 2020 11:08:03 +0000 (21:08 +1000)
qcsrc/common/mapinfo.qc

index 3ef0b74b7eee71f936a4fbaed611eae65c0aceef..facfe02b75c8b145180b8553947e0b77fbeea33d 100644 (file)
@@ -1137,7 +1137,7 @@ int MapInfo_CurrentFeatures()
 {
        int req = 0;
     // TODO: find a better way to check if weapons are required on the map
-       if(!(cvar("g_instagib") || cvar("g_overkill") || cvar("g_nix") || cvar("g_weaponarena") || !cvar("g_pickup_items") 
+       if(!(cvar("g_instagib") || cvar("g_overkill") || cvar("g_nix") || cvar("g_weaponarena") || !cvar("g_pickup_items") || !cvar("g_melee_only") 
                || cvar("g_race") || cvar("g_cts") || cvar("g_nexball") || cvar("g_ca") || cvar("g_freezetag") || cvar("g_lms")))
                req |= MAPINFO_FEATURE_WEAPONS;
        return req;