mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-25 19:02:19 -05:00
Hide debug overlay behind gDebugEnabled (#660)
This commit is contained in:
parent
2159c006fc
commit
97ad234c8c
@ -3228,6 +3228,8 @@ void Message_DrawMain(GlobalContext* globalCtx, Gfx** p) {
|
|||||||
* the last value being saved in a static variable.
|
* the last value being saved in a static variable.
|
||||||
*/
|
*/
|
||||||
void Message_DrawDebugVariableChanged(s16* var, GraphicsContext* gfxCtx) {
|
void Message_DrawDebugVariableChanged(s16* var, GraphicsContext* gfxCtx) {
|
||||||
|
if (!CVar_GetS32("gDebugEnabled", 0)) { return; }
|
||||||
|
|
||||||
static s16 sVarLastValue = 0;
|
static s16 sVarLastValue = 0;
|
||||||
static s16 sFillTimer = 0;
|
static s16 sFillTimer = 0;
|
||||||
s32 pad;
|
s32 pad;
|
||||||
|
Loading…
Reference in New Issue
Block a user