CA doesn't require weapons on maps 756/head
authorFreddy <schro.sb@gmail.com>
Sun, 12 Jan 2020 19:01:41 +0000 (20:01 +0100)
committerFreddy <schro.sb@gmail.com>
Sun, 12 Jan 2020 19:01:41 +0000 (20:01 +0100)
qcsrc/common/mapinfo.qc

index d0931b6983df28006d069fd3d5acffc2b3630048..64ab8dacaafa1c5f1748765566f7d00ef56bc90c 100644 (file)
@@ -1141,7 +1141,8 @@ string MapInfo_FixName(string s)
 int MapInfo_CurrentFeatures()
 {
        int req = 0;
-       if(!(cvar("g_lms") || cvar("g_instagib") || cvar("g_overkill") || cvar("g_nix") || cvar("g_weaponarena") || !cvar("g_pickup_items") || cvar("g_race") || cvar("g_cts") || cvar("g_nexball")))
+    // TODO: find a better way to check if weapons are required on the map
+       if(!(cvar("g_lms") || cvar("g_instagib") || cvar("g_overkill") || cvar("g_nix") || cvar("g_weaponarena") || !cvar("g_pickup_items") || cvar("g_race") || cvar("g_cts") || cvar("g_nexball") || cvar("g_ca")))
                req |= MAPINFO_FEATURE_WEAPONS;
        return req;
 }