renamed function 'NextEvent' to 'WaitEvent'
[rocksndiamonds.git] / src / libgame / misc.c
index 271a8dfbb884946c0f3acfcba022b40d9ba0fa84..bddd38d9a933ce858a53ee3d5c4706192107d35f 100644 (file)
@@ -1003,6 +1003,12 @@ void GetOptions(int argc, char *argv[],
   if (*options_left == NULL)   /* no options given -- enable verbose mode */
     options.verbose = TRUE;
 #endif
+#endif
+
+#if DEBUG
+#if defined(PLATFORM_ANDROID)
+  options.debug = TRUE;
+#endif
 #endif
 
   while (*options_left)
@@ -1212,6 +1218,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;