X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fgadgets.c;h=cbe7482c0cd972dda7d9334864cebc77814b95e1;hp=ba2081c64974887f28a0111d52d91f37b0e30f0d;hb=61c3da024802ecc0268bab42d7499fc0346e4fd3;hpb=e9306042d9ea3bc310590fe16653538905a9b99d diff --git a/src/libgame/gadgets.c b/src/libgame/gadgets.c index ba2081c6..cbe7482c 100644 --- a/src/libgame/gadgets.c +++ b/src/libgame/gadgets.c @@ -1431,8 +1431,8 @@ void ClickOnGadget(struct GadgetInfo *gi, int button) boolean HandleGadgets(int mx, int my, int button) { - static unsigned long pressed_delay = 0; - static unsigned long pressed_delay_value = GADGET_FRAME_DELAY; + static unsigned int pressed_delay = 0; + static unsigned int pressed_delay_value = GADGET_FRAME_DELAY; static int last_button = 0; static int last_mx = 0, last_my = 0; static int pressed_mx = 0, pressed_my = 0;