Remove debug elements and visual SoA (#3086)

This commit is contained in:
aMannus
2023-08-20 19:59:39 +02:00
committed by GitHub
parent f19f303651
commit b040a894d1
3 changed files with 10 additions and 3 deletions

View File

@@ -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;