projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed displaying debug messages only when running in debug mode
[rocksndiamonds.git]
/
src
/
libgame
/
misc.c
diff --git
a/src/libgame/misc.c
b/src/libgame/misc.c
index 271a8dfbb884946c0f3acfcba022b40d9ba0fa84..ed34319f23abc1bdcc3da32a2e569da2efe6785b 100644
(file)
--- a/
src/libgame/misc.c
+++ b/
src/libgame/misc.c
@@
-1212,6
+1212,10
@@
void Error(int mode, char *format, ...)
ANDROID_LOG_UNKNOWN);
#endif
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;
/* display warnings only when running in verbose mode */
if (mode & ERR_WARN && !options.verbose)
return;