diff options
| -rw-r--r-- | src/l4d1democompat.c | 2 | ||||
| -rw-r--r-- | src/nosteamlogon.c | 2 |
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 |
