]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Disable unused radar map generator (saves ~1500 globals)
authorMario <mario@smbclan.net>
Wed, 14 Jun 2017 07:40:26 +0000 (17:40 +1000)
committerMario <mario@smbclan.net>
Wed, 14 Jun 2017 07:40:26 +0000 (17:40 +1000)
qcsrc/server/command/radarmap.qc
qcsrc/server/command/radarmap.qh

index ad86afb23ce84d280d1e41316814e5a3ac9e0017..d8b1797166fa2108290003ea258bdb81a264bf4e 100644 (file)
@@ -1,3 +1,5 @@
+#ifdef RADARMAP
+
 #include "radarmap.qh"
 #include <common/command/_mod.qh>
 #include "radarmap.qh"
@@ -366,7 +368,7 @@ void RadarMap_Think(entity this)
        }
 }
 
-float RadarMap_Make(float argc)
+bool RadarMap_Make(float argc)
 {
        float i;
 
@@ -454,3 +456,4 @@ float RadarMap_Make(float argc)
 
        return false;
 }
+#endif
index 4332003f8f4cd15aa885cc14afd7698ca46fcca7..520884b32b5239e703b6121b4b79c312077f0b66 100644 (file)
@@ -1,4 +1,7 @@
 #pragma once
+#ifndef RADARMAP
+bool RadarMap_Make(float argc) { LOG_INFO("radarmap is disabled, compile with -DRADARMAP to enable it.\n"); return true; }
+#else
 
 // ===========================================
 //     Declarations for radarmap generation code
@@ -14,4 +17,6 @@ string doublehex = "000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D
 // FF is contained twice, to map 256 to FF too
 // removes the need to bound()
 
-float RadarMap_Make(float argc);
+bool RadarMap_Make(float argc);
+
+#endif