From: Ricardo Cruz Date: Thu, 22 Apr 2004 20:44:11 +0000 (+0000) Subject: If you press Esc in the control menu, it quits from there. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4d735f3fa2576651f53772d1bd6a81c57bfad661;p=supertux.git If you press Esc in the control menu, it quits from there. SVN-Revision: 654 --- diff --git a/src/menu.cpp b/src/menu.cpp index 6978fadc5..798dce394 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -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;