From: Mario Date: Wed, 14 Jun 2017 07:40:26 +0000 (+1000) Subject: Disable unused radar map generator (saves ~1500 globals) X-Git-Tag: xonotic-v0.8.5~2737 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=874a7698fdbf9175d0c4f7b26b560b6be630af34;p=xonotic%2Fxonotic-data.pk3dir.git Disable unused radar map generator (saves ~1500 globals) --- diff --git a/qcsrc/server/command/radarmap.qc b/qcsrc/server/command/radarmap.qc index ad86afb23..d8b179716 100644 --- a/qcsrc/server/command/radarmap.qc +++ b/qcsrc/server/command/radarmap.qc @@ -1,3 +1,5 @@ +#ifdef RADARMAP + #include "radarmap.qh" #include #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 diff --git a/qcsrc/server/command/radarmap.qh b/qcsrc/server/command/radarmap.qh index 4332003f8..520884b32 100644 --- a/qcsrc/server/command/radarmap.qh +++ b/qcsrc/server/command/radarmap.qh @@ -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