first item in menu is highlighted by default now.
[supertux.git] / src / gameloop.c
index ff8c6ca..56aad9c 100644 (file)
@@ -176,6 +176,10 @@ void game_event(void)
 
           key = event.key.keysym.sym;
 
+         /* Check for menu-events, if the menu is shown */
+          if(show_menu)
+            menu_event(key);
+         
           if (key == SDLK_ESCAPE)
             {
               /* Escape: Open/Close the menu: */
@@ -214,10 +218,6 @@ void game_event(void)
 
           key = event.key.keysym.sym;
 
-          /* Check for menu-events, if the menu is shown */
-          if(show_menu)
-            menu_event(key);
-
           if (key == SDLK_RIGHT)
             {
               right = UP;