diff options
| author | 2025-11-15 20:24:41 +0000 | |
|---|---|---|
| committer | 2025-11-15 20:24:41 +0000 | |
| commit | c15101df02685a5d26f4b130f7b559eb7ed7f74f (patch) | |
| tree | 5803259d20a291278c9cc7dfd6bc346198f0edb0 /src/nosleep.c | |
| parent | 650bb761d3e5af3f8fa19ac8d22864cc0360d085 (diff) | |
| download | sst-c15101df02685a5d26f4b130f7b559eb7ed7f74f.tar.gz sst-c15101df02685a5d26f4b130f7b559eb7ed7f74f.zip | |
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.
Diffstat (limited to 'src/nosleep.c')
| -rw-r--r-- | src/nosleep.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
