From 6e7246d6cd3fdaefa18880130a5d4ff36b408f6d Mon Sep 17 00:00:00 2001 From: aurhat Date: Fri, 17 Apr 2015 21:08:25 +0200 Subject: [PATCH] Disable debug messages in bot modes Uncomment added line to enable these messages. --- source/src/bot/ac_bot.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/src/bot/ac_bot.h b/source/src/bot/ac_bot.h index 89d0d1a9..eb4b502e 100644 --- a/source/src/bot/ac_bot.h +++ b/source/src/bot/ac_bot.h @@ -15,6 +15,7 @@ #ifdef AC_CUBE +//#define BOTDEBUG #define MAX_WEAPONS 10 class CACBot: public CBot @@ -39,7 +40,7 @@ public: inline void AddScreenText(const char *t, ...) {} // UNDONE inline void AddDebugText(const char *t, ...) { -#ifdef _DEBUG +#if defined(_DEBUG) && defined(BOTDEBUG) va_list v; va_start(v, t); conoutf(t,v);