projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed debug logging to omit output if debug mode disabled
[rocksndiamonds.git]
/
src
/
libgame
/
misc.c
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))