X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;fp=src%2Ftools.c;h=68ec63e915fa22e3ac77b9da29a0dfef29130544;hb=c016432550c0997a4d876c015de95db969f48dc2;hp=1cab72eab5a5ed9c8a0e853480fda53dc1cfec04;hpb=f82cf497747c1c8cb6ce67a5bef77d8e11787e61;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 1cab72ea..68ec63e9 100644 --- a/src/tools.c +++ b/src/tools.c @@ -4238,6 +4238,8 @@ static int RequestHandleEvents(unsigned int req_state) while (result < 0) { + boolean event_handled = FALSE; + if (game_just_ended) { SetDrawtoField(draw_buffer_last); @@ -4259,6 +4261,8 @@ static int RequestHandleEvents(unsigned int req_state) while (NextValidEvent(&event)) { + event_handled = TRUE; + switch (event.type) { case EVENT_BUTTONPRESS: @@ -4513,12 +4517,15 @@ static int RequestHandleEvents(unsigned int req_state) } } - if (game_just_ended) + if (event_handled) { - if (global.use_envelope_request) + if (game_just_ended) { - // copy back current state of pressed buttons inside request area - BlitBitmap(drawto, bitmap_db_store_2, sx, sy, width, height, sx, sy); + if (global.use_envelope_request) + { + // copy back current state of pressed buttons inside request area + BlitBitmap(drawto, bitmap_db_store_2, sx, sy, width, height, sx, sy); + } } }