Skip to content

Commit

Permalink
Hide debug overlay behind gDebugEnabled (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaguerant authored and briaguya-ai committed Jul 14, 2022
1 parent e62c5ba commit d44b172
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions soh/src/code/z_message_PAL.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d44b172

Please sign in to comment.