From: Bill Lash Date: Fri, 30 Aug 2019 02:52:02 +0000 (-0500) Subject: Swallow unexpected timeout keycode X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=686e9162b2915ac2c2ddc81ebb2602d3f8d47312;p=liskon_frotz.git Swallow unexpected timeout keycode Insted of passing on an timeout event when there is no timeout set, just skip it. --- diff --git a/src/common/stream.c b/src/common/stream.c index 7bfffe1..1fb4a32 100644 --- a/src/common/stream.c +++ b/src/common/stream.c @@ -261,11 +261,17 @@ continue_input: * of a recorded stream, it is possible that a timeout * keystroke might be replayed. */ - if (timeout != 0) + if (key == ZC_TIME_OUT) { - if (key == ZC_TIME_OUT) + if (timeout != 0) + { if (direct_call (routine) == 0) goto continue_input; + } + else + { + goto continue_input; + } } /* Handle hot keys */ @@ -342,11 +348,17 @@ continue_input: * of a recorded stream, it is possible that a timeout * keystroke might be replayed. */ - if (timeout != 0) + if (key == ZC_TIME_OUT) { - if (key == ZC_TIME_OUT) + if (timeout != 0) + { if (direct_call (routine) == 0) goto continue_input; + } + else + { + goto continue_input; + } } /* Handle hot keys */