From a5372622f33f44ac83f28bc09ff8b79cb2676ef5 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sun, 1 Jun 2025 20:29:46 +0100 Subject: Fix bad returns missed in the feature init rewrite --- 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 a622044..b440bf3 100644 --- a/src/nosleep.c +++ b/src/nosleep.c @@ -42,9 +42,9 @@ static void VCALLCONV hook_SleepUntilInput(void *this, int timeout) { } PREINIT { - if (con_findvar("engine_no_focus_sleep")) return false; + if (con_findvar("engine_no_focus_sleep")) return FEAT_SKIP; con_regvar(engine_no_focus_sleep); - return true; + return FEAT_OK; } INIT { -- cgit v1.2.3-54-g00ecf