From: Mario Date: Mon, 24 Apr 2017 07:34:12 +0000 (+1000) Subject: Comment out the debugdraw stuff (allows cheating on large open maps by pinpointing... X-Git-Tag: xonotic-v0.8.5~2830 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9a8d69e2b56c06f2266a7a6f494fb4eb09e35a3c;p=xonotic%2Fxonotic-data.pk3dir.git Comment out the debugdraw stuff (allows cheating on large open maps by pinpointing enemy locations) --- 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") {