projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e702d18
)
fixed debug logging to omit output if debug mode disabled
author
Holger Schemel
<info@artsoft.org>
Wed, 16 Sep 2020 16:45:34 +0000
(18:45 +0200)
committer
Holger Schemel
<info@artsoft.org>
Wed, 16 Sep 2020 16:45:34 +0000
(18:45 +0200)
src/libgame/misc.c
patch
|
blob
|
history
diff --git
a/src/libgame/misc.c
b/src/libgame/misc.c
index e3983f6d8e98b43b7e93414e6cf2800015f5c581..8719e145160eb018f0520edc92a5ba8ba494f16f 100644
(file)
--- 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))