summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorHayden <imaciidz@gmail.com>2022-04-25 02:23:15 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-04-25 02:24:15 +0100
commit9d1fea271bd823b6dc98feb61992bbe64b95a188 (patch)
tree07bc0a512ca8fd5dba542f75732e2d26c852dd4f /src
parent10214f1cfe8f95849a442932d37bb33217d117eb (diff)
Suppress L4D1 console spam
Diffstat (limited to 'src')
-rw-r--r--src/fixes.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fixes.c b/src/fixes.c
index b2f202c..e1b4c0a 100644
--- a/src/fixes.c
+++ b/src/fixes.c
@@ -125,6 +125,13 @@ static void l4d1specific(void) {
// values via the menu. This change here brings it in line with pretty much
// all other Source games for convenience.
chflags("mat_monitorgamma", CON_HIDDEN | CON_DEVONLY, CON_ARCHIVE);
+
+ // Very early versions of L4D1 have a bunch of useless console spam. Setting
+ // these hidden variables to 0 gets rid of it.
+ struct con_var *v = con_findvar("ui_l4d_debug");
+ if (v) con_setvari(v, 0);
+ v = con_findvar("mm_l4d_debug");
+ if (v) con_setvari(v, 0);
}
void fixes_apply(void) {