From: Holger Schemel Date: Sat, 14 Jul 2018 11:47:17 +0000 (+0200) Subject: added clearing event queue after fading and after door/envelope requests X-Git-Tag: 4.1.1.0~83 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=ba20bcc8;p=rocksndiamonds.git added clearing event queue after fading and after door/envelope requests --- diff --git a/src/tools.c b/src/tools.c index 63bff391..ab6c4efa 100644 --- a/src/tools.c +++ b/src/tools.c @@ -981,6 +981,8 @@ static void FadeExt(int fade_mask, int fade_mode, int fade_type) draw_border_function); redraw_mask &= ~fade_mask; + + ClearEventQueue(); } static void SetScreenStates_BeforeFadingIn() @@ -2800,6 +2802,8 @@ void AnimateEnvelope(int envelope_nr, int anim_mode, int action) SkipUntilDelayReached(&anim_delay, anim_delay_value, &i, last_frame); } + + ClearEventQueue(); } void ShowEnvelope(int envelope_nr) @@ -3083,6 +3087,8 @@ void AnimateEnvelopeRequest(int anim_mode, int action) SkipUntilDelayReached(&anim_delay, anim_delay_value, &i, last_frame); } + + ClearEventQueue(); } void ShowEnvelopeRequest(char *text, unsigned int req_state, int action) @@ -5419,6 +5425,8 @@ unsigned int MoveDoor(unsigned int door_state) DrawMaskedBorder(REDRAW_DOOR_1); DrawMaskedBorder(REDRAW_DOOR_2); + ClearEventQueue(); + return (door1 | door2); }