From c15101df02685a5d26f4b130f7b559eb7ed7f74f Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 15 Nov 2025 20:24:41 +0000 Subject: Deal with CON_HIDDEN not existing in OE Pretty hacky for now, but not the worst thing in the world. Can always be tidied up later. --- src/nosleep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nosleep.c') diff --git a/src/nosleep.c b/src/nosleep.c index b440bf3..3ac4069 100644 --- a/src/nosleep.c +++ b/src/nosleep.c @@ -31,7 +31,7 @@ REQUIRE_GLOBAL(inputsystem) DEF_CVAR_UNREG(engine_no_focus_sleep, "Delay while tabbed out (SST reimplementation)", 50, - CON_ARCHIVE | CON_HIDDEN) + CON_ARCHIVE | CON_INIT_HIDDEN) static void **vtable; @@ -56,7 +56,7 @@ INIT { } orig_SleepUntilInput = (SleepUntilInput_func)hook_vtable(vtable, vtidx_SleepUntilInput, (void *)&hook_SleepUntilInput); - engine_no_focus_sleep->base.flags &= ~CON_HIDDEN; + con_unhide(&engine_no_focus_sleep->base); return FEAT_OK; } -- cgit v1.2.3-54-g00ecf