summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorWillian Henrique <wsimanbrazil@yahoo.com.br>2023-06-15 04:12:01 -0300
committerMichael Smith <mikesmiffy128@gmail.com>2023-06-15 23:04:47 +0100
commit7079ad6643f3eaa724c9f9ae0e753e787ee2f7f5 (patch)
tree65f6aea9dda13c85ec070abe4b1951ca40f69d28
parent13ad0442a3fde0518ca9133b55796f31652698c9 (diff)
Fix L4D VGuiConnect/VGuiIsInitialized gamedata
This was actually breaking deferred initialisation in 0.5, the main observable effect being that the L4D1 console spam fix stopped working. Committer's note: woopsy!
-rw-r--r--gamedata/engine.kv4
-rw-r--r--src/fixes.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/gamedata/engine.kv b/gamedata/engine.kv
index 58511db..e72fa3f 100644
--- a/gamedata/engine.kv
+++ b/gamedata/engine.kv
@@ -89,11 +89,11 @@ off_SP_offset {
// IEngineVGuiInternal/CEngineVGui
vtidx_VGuiConnect { // note: the actual name is Connect() but that's too generic
default "3 + NVDTOR"
- Portal2 "4 + NVDTOR" // ActivateGameUI added
+ L4Dbased "4 + NVDTOR" // ActivateGameUI added
}
vtidx_VGuiIsInitialized { // likewise, function is just called IsInitialized()
default "6 + NVDTOR"
- Portal2 "7 + NVDTOR"
+ L4Dbased "7 + NVDTOR"
}
// vi: sw=4 ts=4 noet tw=80 cc=80 ft=plain
diff --git a/src/fixes.c b/src/fixes.c
index b2eaf91..8d5bb77 100644
--- a/src/fixes.c
+++ b/src/fixes.c
@@ -169,7 +169,6 @@ static void l4d1specific(void) {
// these hidden variables to 0 gets rid of it.
struct con_var *v = con_findvar("ui_l4d_debug");
if (v) con_setvari(v, 0);
- // FIXME: this is borked with deferred init. Does gameui load SUPER late?
v = con_findvar("mm_l4d_debug");
if (v) con_setvari(v, 0);