X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.c;h=976974ac58891e6b9c8db2bab1c9057e876dac75;hb=8cef2a63b6c56ba086183693d3f73f02862cbd8f;hp=d4ec480279066e2a8759ed0b82c1fd23d8cf8de3;hpb=e5c5bf5c4a76a04f9bf64e92227bf2ef969fd25c;p=rocksndiamonds.git diff --git a/src/events.c b/src/events.c index d4ec4802..976974ac 100644 --- a/src/events.c +++ b/src/events.c @@ -263,7 +263,7 @@ void HandleClientMessageEvent(XClientMessageEvent *event) { if ((event->window == window) && (event->data.l[0] == XInternAtom(display, "WM_DELETE_WINDOW", FALSE))) - game_status = EXITGAME; + CloseAllAndExit(0); } void HandleButton(int mx, int my, int button) @@ -773,7 +773,7 @@ void HandleJoystick() { static long joystickmove_delay = 0; - if (joystick && !button && !DelayReached(&joystickmove_delay,15)) + if (joystick && !button && !DelayReached(&joystickmove_delay,150)) newbutton = dx = dy = 0; if (game_status==MAINMENU)