From 3ddb31ea086155c551507357b77d83d5b57935c6 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 3 Apr 2026 21:48:15 +0100 Subject: Clean up a couple of random things --- src/autojump.c | 2 +- src/demorec.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/autojump.c b/src/autojump.c index 48caf90..30dbcd1 100644 --- a/src/autojump.c +++ b/src/autojump.c @@ -111,7 +111,7 @@ INIT { // it's also necessary to do this extremely stupid callback nonsense! sst_autojump->base.flags |= CON_CHEAT; sv_cheats = con_findvar("sv_cheats"); - sst_autojump->cb = cheatcb; + sst_autojump->cb = &cheatcb; } return FEAT_OK; } diff --git a/src/demorec.c b/src/demorec.c index 7a2c798..c36164f 100644 --- a/src/demorec.c +++ b/src/demorec.c @@ -246,7 +246,6 @@ bool demorec_start(const char *name) { if (was) return false; // dumb but easy way to do this: call the record command callback. note: // this args object is very incomplete by enough to make the command work - // TODO(compat): will this be a problem for OE with the global argc/argv? orig_record_cb(2, (const char *[]){0, name}); if (!was && *recording) *demonum = 0; // same logic as in the hook EMIT_DemoRecordStarting(); -- cgit v1.2.3-54-g00ecf