From b040a894d19e719e51bc3d77d02c37b49900436c Mon Sep 17 00:00:00 2001 From: aMannus Date: Sun, 20 Aug 2023 19:59:39 +0200 Subject: Remove debug elements and visual SoA (#3086) --- soh/src/code/z_debug.c | 4 +++- soh/src/code/z_debug_display.c | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'soh/src/code') diff --git a/soh/src/code/z_debug.c b/soh/src/code/z_debug.c index 294f530cc..8eb9de5a8 100644 --- a/soh/src/code/z_debug.c +++ b/soh/src/code/z_debug.c @@ -1,4 +1,5 @@ #include "global.h" +#include "soh/Enhancements/game-interactor/GameInteractor.h" typedef struct { u8 x; @@ -219,8 +220,9 @@ void func_80063D7C(GraphicsContext* gfxCtx) { GfxPrint printer; Gfx* tempRet; - if (!CVarGetInteger("gDebugEnabled", 0)) + if (!CVarGetInteger("gDebugEnabled", 0) || GameInteractor_NoUIActive()) { return; + } OPEN_DISPS(gfxCtx); diff --git a/soh/src/code/z_debug_display.c b/soh/src/code/z_debug_display.c index e6f3764c8..555151b7c 100644 --- a/soh/src/code/z_debug_display.c +++ b/soh/src/code/z_debug_display.c @@ -1,5 +1,6 @@ #include "global.h" #include "objects/gameplay_keep/gameplay_keep.h" +#include "soh/Enhancements/game-interactor/GameInteractor.h" typedef struct { /* 0x00 */ s16 drawType; // indicates which draw function to use when displaying the object @@ -34,6 +35,10 @@ DebugDispObject* DebugDisplay_AddObject(f32 posX, f32 posY, f32 posZ, s16 rotX, GraphicsContext* gfxCtx) { DebugDispObject* prevHead = sDebugObjectListHead; + if (GameInteractor_NoUIActive()) { + return sDebugObjectListHead; + } + sDebugObjectListHead = Graph_Alloc(gfxCtx, sizeof(DebugDispObject)); sDebugObjectListHead->pos.x = posX; -- cgit v1.2.3