]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Comment out the debugdraw stuff (allows cheating on large open maps by pinpointing...
authorMario <mario@smbclan.net>
Mon, 24 Apr 2017 07:34:12 +0000 (17:34 +1000)
committerMario <mario@smbclan.net>
Mon, 24 Apr 2017 07:34:12 +0000 (17:34 +1000)
qcsrc/client/view.qc
qcsrc/common/debug.qh

index 65df30fd89ff5ec10f4eb3804cac9e7d3776c384..865ddf6a029dfa87362acc2b7c23c5162fbbffe6 100644 (file)
@@ -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();
 
index f45aeef7ed88d83dea4d578a366bc8078e256e43..7aabe69a90e51f29d6cdcb6156a8730a25cb29a3 100644 (file)
@@ -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")
 {