]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't define CCR and related autocvars in the menu
authorterencehill <piuntn@gmail.com>
Thu, 22 Jun 2017 22:59:20 +0000 (00:59 +0200)
committerterencehill <piuntn@gmail.com>
Thu, 22 Jun 2017 22:59:20 +0000 (00:59 +0200)
qcsrc/common/util.qh
qcsrc/lib/string.qh

index 547384cdd3f18be418c550a88a7d2d7f81045611..7ae9ab42a8adc8ab8e1c7c96b3971594ed4a06e4 100644 (file)
@@ -256,7 +256,9 @@ void FindConnectedComponent(entity e, .entity fld, findNextEntityNearFunction_t
 #define fprintf(file, ...) fputs(file, sprintf(__VA_ARGS__))
 #define bprintf(...) bprint(sprintf(__VA_ARGS__))
 
+#ifdef GAMEQC
 string CCR(string input);
+#endif
 
 #ifdef GAMEQC
        #ifdef CSQC
index 617891d8b6230f75bafe674b423896d90ac068f1..9f0c5ca13bcaea342e6e27537931dc7b076aeff4 100644 (file)
@@ -72,6 +72,7 @@ string ColorTranslateRGB(string s)
        return (ColorTranslateMode & 1) ? strdecolorize(s) : s;
 }
 
+#ifdef GAMEQC
 // color code replace, place inside of sprintf and parse the string... defaults described as constants
 // foreground/normal colors
 string autocvar_hud_colorset_foreground_1 = "2"; // F1 - Green  // primary priority (important names, etc)
@@ -106,6 +107,7 @@ string CCR(string input)
        input = strreplace("^N", "^7", input);  // "none"-- reset to white...
        return input;
 }
+#endif
 
 #define startsWith(haystack, needle) (strstrofs(haystack, needle, 0) == 0)