X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fbuttons.c;h=78e28d168a762814388b2d08c988bd2d721ac4ac;hp=c24981f377d6b9c29492d1ea795b9ea344764559;hb=20e58eb6573a45a41c25958e17e8d9c20f738edc;hpb=181399ef548528792ef51d1cfeb875b57b0133ae diff --git a/src/buttons.c b/src/buttons.c index c24981f3..78e28d16 100644 --- a/src/buttons.c +++ b/src/buttons.c @@ -899,7 +899,8 @@ static void MultiMapGadgets(int mode) { if ((mode & MULTIMAP_PLAYFIELD && gi->x < SX + SXSIZE) || (mode & MULTIMAP_DOOR_1 && gi->x >= DX && gi->y < DY + DYSIZE) || - (mode & MULTIMAP_DOOR_1 && gi->x >= DX && gi->y > DY + DYSIZE)) + (mode & MULTIMAP_DOOR_2 && gi->x >= DX && gi->y > DY + DYSIZE) || + (mode & MULTIMAP_ALL) == MULTIMAP_ALL) { if (mode & MULTIMAP_UNMAP) { @@ -1183,6 +1184,8 @@ void HandleGadgets(int mx, int my, int button) if (gadget_pressed_repeated) { + gi->event.type = GD_EVENT_PRESSED; + if (gi->event_mask & GD_EVENT_REPEATED && DelayReached(&pressed_delay, GADGET_FRAME_DELAY)) gi->callback_action(gi);