]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/radarmap.qh
Merge branch 'master' into TimePath/scrollpanel
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / radarmap.qh
index fea60ba9e1143238181d3f5a131ea7034edcb3f7..ffa82e5c02e09131efb74f5fd150fba0b4e601ec 100644 (file)
@@ -1,5 +1,7 @@
-#ifndef RADARMAP_H
-#define RADARMAP_H
+#pragma once
+#ifndef RADARMAP
+bool RadarMap_Make(float argc) { LOG_INFO("radarmap is disabled, compile with -DRADARMAP to enable it."); return true; }
+#else
 
 // ===========================================
 //     Declarations for radarmap generation code
@@ -15,7 +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