added headless mode (no window) for automated tape tests using 'autotest'
[rocksndiamonds.git] / src / tools.c
index 55a28fc40d0cf13ef90ec1df29c3910bb15e5661..6c990cbc2cb956ff1cf009e92bfef32a56f4493d 100644 (file)
@@ -3736,6 +3736,9 @@ void WaitForEventToContinue()
 {
   boolean still_wait = TRUE;
 
+  if (program.headless)
+    return;
+
   /* simulate releasing mouse button over last gadget, if still pressed */
   if (button_status)
     HandleGadgets(-1, -1, 0);