rnd-19981020-1
[rocksndiamonds.git] / src / events.c
index d4ec480279066e2a8759ed0b82c1fd23d8cf8de3..976974ac58891e6b9c8db2bab1c9057e876dac75 100644 (file)
@@ -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)