[Super-tux-commit] supertux/src menu.cpp,1.49,1.50
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-04-22 20:44:20
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23617/src Modified Files: menu.cpp Log Message: If you press Esc in the control menu, it quits from there. Index: menu.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/menu.cpp,v retrieving revision 1.49 retrieving revision 1.50 diff -u -d -r1.49 -r1.50 --- menu.cpp 22 Apr 2004 18:39:52 -0000 1.49 +++ menu.cpp 22 Apr 2004 20:44:11 -0000 1.50 @@ -641,6 +641,11 @@ 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; |