From 9a8d69e2b56c06f2266a7a6f494fb4eb09e35a3c Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 24 Apr 2017 17:34:12 +1000 Subject: [PATCH] Comment out the debugdraw stuff (allows cheating on large open maps by pinpointing enemy locations) --- qcsrc/client/view.qc | 2 ++ qcsrc/common/debug.qh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index 65df30fd8..865ddf6a0 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -2245,7 +2245,9 @@ void CSQC_UpdateView(entity this, float w, float h) // draw 2D entities IL_EACH(g_drawables_2d, it.draw2d, it.draw2d(it)); Draw_ShowNames_All(); +#ifdef DEBUGDRAW Debug_Draw(); +#endif scoreboard_active = Scoreboard_WouldDraw(); diff --git a/qcsrc/common/debug.qh b/qcsrc/common/debug.qh index f45aeef7e..7aabe69a9 100644 --- a/qcsrc/common/debug.qh +++ b/qcsrc/common/debug.qh @@ -47,6 +47,7 @@ REGISTER_NET_TEMP(net_debug) } #endif +#ifdef DEBUGDRAW #ifdef GAMEQC /** * 0: off @@ -182,6 +183,7 @@ bool autocvar_debugdraw; } } #endif +#endif GENERIC_COMMAND(bufstr_get, "Examine a string buffer object") { -- 2.39.2