From: Holger Schemel Date: Sat, 30 Sep 2017 17:00:34 +0000 (+0200) Subject: changed displaying debug messages only when running in debug mode X-Git-Tag: 4.0.1.0^0 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=66d4b197d129fb41012eb4359129dabbae892497;p=rocksndiamonds.git changed displaying debug messages only when running in debug mode --- diff --git a/src/libgame/misc.c b/src/libgame/misc.c index 271a8dfb..ed34319f 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -1212,6 +1212,10 @@ void Error(int mode, char *format, ...) ANDROID_LOG_UNKNOWN); #endif + /* display debug messages only when running in debug mode */ + if (mode & ERR_DEBUG && !options.debug) + return; + /* display warnings only when running in verbose mode */ if (mode & ERR_WARN && !options.verbose) return;