From 97ad234c8c0052801120badd8c4531505e5de2c0 Mon Sep 17 00:00:00 2001 From: vaguerant Date: Wed, 13 Jul 2022 13:58:24 +1000 Subject: [PATCH] Hide debug overlay behind gDebugEnabled (#660) --- soh/src/code/z_message_PAL.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soh/src/code/z_message_PAL.c b/soh/src/code/z_message_PAL.c index 501a5b8cd..9cf592e4f 100644 --- a/soh/src/code/z_message_PAL.c +++ b/soh/src/code/z_message_PAL.c @@ -3228,6 +3228,8 @@ void Message_DrawMain(GlobalContext* globalCtx, Gfx** p) { * the last value being saved in a static variable. */ void Message_DrawDebugVariableChanged(s16* var, GraphicsContext* gfxCtx) { + if (!CVar_GetS32("gDebugEnabled", 0)) { return; } + static s16 sVarLastValue = 0; static s16 sFillTimer = 0; s32 pad;