aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Hayden K <imaciidz@gmail.com> 2026-11-11 23:07:33 +0000
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2026-11-13 23:20:02 +0000
commit3b86c974e1ea8ccee355eee223b90d545a0c0f95 (patch)
treecbcf9e9a0d9845ae3f323589100a1a9a307ee99f
parent18c42b938ba5a91ce3c91839cfd218e096bc0e51 (diff)
downloadsst-3b86c974e1ea8ccee355eee223b90d545a0c0f95.tar.gz
sst-3b86c974e1ea8ccee355eee223b90d545a0c0f95.zip
Fix an idiotic regression in L4D1 demo compat
Happened when I was getting rid of all the memcpy calls. Must have been asleep. As usual. Sigh. Thanks Hayden for spotting.
-rw-r--r--src/l4d1democompat.c2
-rw-r--r--src/nosteamlogon.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/l4d1democompat.c b/src/l4d1democompat.c
index 735215c..5ed4627 100644
--- a/src/l4d1democompat.c
+++ b/src/l4d1democompat.c
@@ -129,7 +129,7 @@ static inline void *find_midpoint(ReadDemoHeader_func ReadDemoHeader) {
for (uchar *p = insns; p - insns < 128;) {
const u64 HL2DEMO = 0x4F4D4544324C48; // "HL2DEMO\0" ascii, little-endian
if (p[0] == X86_PUSHIW && p[5] == X86_PUSHEBX && p[6] == X86_CALL &&
- !mem_loadu64(mem_loadptr(p + 1)) == HL2DEMO) {
+ mem_loadu64(mem_loadptr(p + 1)) == HL2DEMO) {
return p + 11;
}
NEXT_INSN(p, "ReadDemoHeader hook midpoint");
diff --git a/src/nosteamlogon.c b/src/nosteamlogon.c
index a97a4ce..c79a828 100644
--- a/src/nosteamlogon.c
+++ b/src/nosteamlogon.c
@@ -40,8 +40,6 @@ GAMESPECIFIC(L4D)
REQUIRE(chatmsg)
REQUIRE_GAMEDATA(vtidx_GetClientName)
-// FIXME: introduce a convar to control the chat reporting behaviour
-
static void *Steam3Server = 0;
// find CSteam3Server instance in hostname callback