Hide debug overlay behind gDebugEnabled (#660)

This commit is contained in:
vaguerant
2022-07-13 13:58:24 +10:00
committed by GitHub
parent 2159c006fc
commit 97ad234c8c

View File

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