projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb307f1
)
changed displaying debug messages only when running in debug mode
4.0.1.0
author
Holger Schemel
<info@artsoft.org>
Sat, 30 Sep 2017 17:00:34 +0000
(19:00 +0200)
committer
Holger Schemel
<info@artsoft.org>
Sat, 30 Sep 2017 17:00:34 +0000
(19:00 +0200)
src/libgame/misc.c
patch
|
blob
|
history
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
+ /* 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;