From 7565bc1bc1680483fb72991c150a339e1bd13518 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Fri, 16 Feb 2024 22:23:35 +0800 Subject: [PATCH] [saco] Implement `cmdDebugLabels(...)` --- saco/cmdprocs.cpp | 3 ++- saco/main.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/saco/cmdprocs.cpp b/saco/cmdprocs.cpp index 4069881..0ca5640 100644 --- a/saco/cmdprocs.cpp +++ b/saco/cmdprocs.cpp @@ -7,6 +7,7 @@ extern CDeathWindow *pDeathWindow; extern CNetGame *pNetGame; extern GAME_SETTINGS tSettings; +extern bool bShowDebugLabels; void cmdDefaultCmdProc(PCHAR szCmd) { @@ -143,7 +144,7 @@ void cmdToggleObjectLight(PCHAR szCmd) void cmdDebugLabels(PCHAR szCmd) { - // TODO: cmdDebugLabels + bShowDebugLabels = !bShowDebugLabels; } void cmdRcon(PCHAR szCmd) diff --git a/saco/main.cpp b/saco/main.cpp index 3f42a5d..d70609f 100644 --- a/saco/main.cpp +++ b/saco/main.cpp @@ -25,6 +25,8 @@ CFontRender *pDefaultFont=0; HANDLE hInstance=0; +bool bShowDebugLabels = false; + CGame *pGame=0; DWORD dwGraphicsLoop=0;