X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=6c990cbc2cb956ff1cf009e92bfef32a56f4493d;hb=ffd72ec82d108006fce6246f2d0023057c39af35;hp=55a28fc40d0cf13ef90ec1df29c3910bb15e5661;hpb=9eb4ba2e639c16c6a5e72ddaeabfb455a85c66bf;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 55a28fc4..6c990cbc 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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);