projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
048c872
)
Only refresh menu items that have been created in the JoystickMenu to avoid crash
author
Ingo Ruhnke
<grumbel@gmail.com>
Wed, 27 Aug 2014 08:24:55 +0000
(10:24 +0200)
committer
Ingo Ruhnke
<grumbel@gmail.com>
Wed, 27 Aug 2014 08:24:55 +0000
(10:24 +0200)
src/supertux/menu/joystick_menu.cpp
patch
|
blob
|
history
diff --git
a/src/supertux/menu/joystick_menu.cpp
b/src/supertux/menu/joystick_menu.cpp
index
c60bd71
..
5e47bba
100644
(file)
--- a/
src/supertux/menu/joystick_menu.cpp
+++ b/
src/supertux/menu/joystick_menu.cpp
@@
-224,7
+224,13
@@
JoystickMenu::refresh()
refresh_menu_item(Controller::PEEK_RIGHT);
refresh_menu_item(Controller::PEEK_UP);
refresh_menu_item(Controller::PEEK_DOWN);
- refresh_menu_item(Controller::CHEAT_MENU);
+
+ if (g_config->developer_mode || g_config->console_enabled) {
+ refresh_menu_item(Controller::CONSOLE);
+ }
+ if (g_config->developer_mode) {
+ refresh_menu_item(Controller::CHEAT_MENU);
+ }
}
}