projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56e4ac9
)
If you press Esc in the control menu, it quits from there.
author
Ricardo Cruz
<rick2@aeiou.pt>
Thu, 22 Apr 2004 20:44:11 +0000
(20:44 +0000)
committer
Ricardo Cruz
<rick2@aeiou.pt>
Thu, 22 Apr 2004 20:44:11 +0000
(20:44 +0000)
SVN-Revision: 654
src/menu.cpp
patch
|
blob
|
history
diff --git
a/src/menu.cpp
b/src/menu.cpp
index
6978fad
..
798dce3
100644
(file)
--- 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;