From 447aa3e9d2983a8fd74e7f8371bf88ece291bd69 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 25 Nov 2025 19:40:20 +0000 Subject: Fix input HUD crash in L4D games I screwed up merging Evan's changes, and also didn't have that one REQUIRE_GAMEDATA for some reason, and also didn't test actually turning on the sst_inputhud cvar once everything had loaded fine in testing. Unlucky, I guess. Better testing might still have caught it. --- gamedata/vguimatsurface.txt | 1 + src/hud.c | 1 + src/sst.c | 1 + tools/mkbindist.bat | 4 ++-- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gamedata/vguimatsurface.txt b/gamedata/vguimatsurface.txt index 13fb31b..ed9ed54 100644 --- a/gamedata/vguimatsurface.txt +++ b/gamedata/vguimatsurface.txt @@ -66,5 +66,6 @@ vtidx_GetTextSize OrangeBoxbased 72 Client014 2013 75 + L4D 72 # vi: sw=4 ts=4 noet tw=80 cc=80 diff --git a/src/hud.c b/src/hud.c index 0c5eea6..0c7c142 100644 --- a/src/hud.c +++ b/src/hud.c @@ -47,6 +47,7 @@ REQUIRE_GAMEDATA(vtidx_DrawPrintText) REQUIRE_GAMEDATA(vtidx_GetScreenSize) REQUIRE_GAMEDATA(vtidx_GetFontTall) REQUIRE_GAMEDATA(vtidx_GetCharacterWidth) +REQUIRE_GAMEDATA(vtidx_GetTextSize) // CEngineVGui REQUIRE_GAMEDATA(vtidx_GetPanel) // vgui::Panel diff --git a/src/sst.c b/src/sst.c index 92b880f..6f8910e 100644 --- a/src/sst.c +++ b/src/sst.c @@ -270,6 +270,7 @@ static bool already_loaded = false, skip_unload = false; // auto-update message. see below in do_featureinit() static const char *updatenotes = "\ +* Fixed input HUD crash in L4D games introduced by previous release\n\ "; enum { // used in generated code, must line up with featmsgs arrays below diff --git a/tools/mkbindist.bat b/tools/mkbindist.bat index 63883e8..a3a17c2 100644 --- a/tools/mkbindist.bat +++ b/tools/mkbindist.bat @@ -21,8 +21,8 @@ md TEMP-%name% || goto :end copy sst.dll TEMP-%name%\sst.dll || goto :end copy dist\LICENCE.windows TEMP-%name%\LICENCE || goto :end :: using midnight on release day to make zip deterministic! change on next release! -powershell (Get-Item TEMP-%name%\sst.dll).LastWriteTime = new-object DateTime 2025, 11, 24, 0, 0, 0 -powershell (Get-Item TEMP-%name%\LICENCE).LastWriteTime = new-object DateTime 2025, 11, 24, 0, 0, 0 +powershell (Get-Item TEMP-%name%\sst.dll).LastWriteTime = new-object DateTime 2025, 11, 25, 0, 0, 0 +powershell (Get-Item TEMP-%name%\LICENCE).LastWriteTime = new-object DateTime 2025, 11, 25, 0, 0, 0 pushd TEMP-%name% "%SEVENZIP%" a -mtc=off %name%.zip sst.dll LICENCE || goto :end move %name%.zip ..\release\%name%.zip -- cgit v1.2.3-54-g00ecf