From 8592583207e44a4cd506c161c96c133ac47615b1 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 23 Jun 2017 00:59:20 +0200 Subject: [PATCH] Don't define CCR and related autocvars in the menu --- qcsrc/common/util.qh | 2 ++ qcsrc/lib/string.qh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/qcsrc/common/util.qh b/qcsrc/common/util.qh index 547384cdd..7ae9ab42a 100644 --- a/qcsrc/common/util.qh +++ b/qcsrc/common/util.qh @@ -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 diff --git a/qcsrc/lib/string.qh b/qcsrc/lib/string.qh index 617891d8b..9f0c5ca13 100644 --- a/qcsrc/lib/string.qh +++ b/qcsrc/lib/string.qh @@ -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) -- 2.39.2