From: Holger Schemel Date: Wed, 16 Sep 2020 16:45:34 +0000 (+0200) Subject: fixed debug logging to omit output if debug mode disabled X-Git-Tag: 4.2.0.3~34 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=4fc0827fea3bd1e340f4a3e580d83be1c8e2356a;p=rocksndiamonds.git fixed debug logging to omit output if debug mode disabled --- diff --git a/src/libgame/misc.c b/src/libgame/misc.c index e3983f6d..8719e145 100644 --- a/src/libgame/misc.c +++ b/src/libgame/misc.c @@ -340,6 +340,9 @@ void Debug(char *mode, char *format, ...) { va_list ap; + if (!options.debug) + return; + // if optional debug mode specified, limit debug output accordingly if (options.debug_mode != NULL && !strEqual(options.debug_mode, mode))