summaryrefslogtreecommitdiffhomepage
path: root/src/fixes.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-05-12 16:38:53 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-05-12 16:38:53 +0100
commit829dece47f305979bd1375300ebc14fc2e264c0a (patch)
treeece92f21916bcdc893ff21034ab8599d895c0071 /src/fixes.c
parenta0138ff3772e71f338d04668076ec1eb9d44f8f4 (diff)
Rerun L4D1 console spam fix after config loading
This was the simplest way I could think of to solve this issue. Thanks again Aciidz for pointing the issue out, and thanks Turtle Rock for shipping such a broken game.
Diffstat (limited to 'src/fixes.c')
-rw-r--r--src/fixes.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fixes.c b/src/fixes.c
index d055ba8..a90d878 100644
--- a/src/fixes.c
+++ b/src/fixes.c
@@ -161,4 +161,12 @@ void fixes_apply(void) {
else if (GAMETYPE_MATCHES(L4D2x)) l4d2specific();
}
+void fixes_tryagainlater(void) {
+ if (GAMETYPE_MATCHES(L4D1)) {
+ // whatever dll this is in seems to load late (mm_l4d_debug is fine)
+ struct con_var *v = con_findvar("ui_l4d_debug");
+ if (v) con_setvari(v, 0);
+ }
+}
+
// vi: sw=4 ts=4 noet tw=80 cc=80