If you press Esc in the control menu, it quits from there.
authorRicardo Cruz <rick2@aeiou.pt>
Thu, 22 Apr 2004 20:44:11 +0000 (20:44 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Thu, 22 Apr 2004 20:44:11 +0000 (20:44 +0000)
SVN-Revision: 654

src/menu.cpp

index 6978fad..798dce3 100644 (file)
@@ -641,6 +641,11 @@ Menu::event(SDL_Event& event)
 
       if(item[active_item].kind == MN_CONTROLFIELD)
         {
+        if(key == SDLK_ESCAPE)
+          {
+          Menu::pop_current();
+          return;
+          }
         *item[active_item].int_p = key;
         menuaction = MENU_ACTION_DOWN;
         return;