From 0139fea6d969c5d05bc03e7fc2d0b3b6eb32d255 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 4 Aug 2022 16:48:56 +0200 Subject: [PATCH] [MIRROR] Fixes click catcher failing to be reapplied onto the screen when show_hud is called [MDB IGNORE] (#15371) * Fixes click catcher failing to be reapplied onto the screen when show_hud is called (#68853) Done stuff Co-authored-by: Watermelon914 * Fixes click catcher failing to be reapplied onto the screen when show_hud is called Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Watermelon914 --- code/modules/client/client_procs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 79aa26cc7ee..0ff83b8d4a2 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -482,7 +482,6 @@ GLOBAL_LIST_INIT(blacklisted_builds, list( send_resources() - generate_clickcatcher() apply_clickcatcher() if(prefs.lastchangelog != GLOB.changelog_hash) //bolds the changelog button on the interface so we know there are updates. @@ -1123,6 +1122,7 @@ GLOBAL_LIST_INIT(blacklisted_builds, list( /client/proc/generate_clickcatcher() if(!void) void = new() + if(!(void in screen)) screen += void /client/proc/apply_clickcatcher()