X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.c;h=c2548e5f0e065959b917399a795faf078dbbd6b5;hb=aeffe316860a47217d9b5074ade03cebda8730c9;hp=e07b8494cef2b9167b45382cb919bf5e69a3189f;hpb=8ab1a8040e3d3615ac2f6656f38fef8a809364a8;p=rocksndiamonds.git diff --git a/src/events.c b/src/events.c index e07b8494..c2548e5f 100644 --- a/src/events.c +++ b/src/events.c @@ -108,7 +108,7 @@ static int FilterEvents(const Event *event) { SetMouseCursor(CURSOR_DEFAULT); - DelayReached(&special_cursor_delay, 0); + ResetDelayCounter(&special_cursor_delay); cursor_mode_last = CURSOR_DEFAULT; } @@ -336,7 +336,7 @@ static void HandleMouseCursor(void) // display normal pointer if mouse pressed if (button_status != MB_RELEASED) - DelayReached(&special_cursor_delay, 0); + ResetDelayCounter(&special_cursor_delay); if (gfx.cursor_mode != CURSOR_PLAYFIELD && cursor_inside_playfield && @@ -2411,7 +2411,7 @@ void HandleKey(Key key, int key_status) switch (key) { case KSYM_Escape: - RequestQuitGame(setup.ask_on_escape); + RequestQuitGame(TRUE); break; default: