diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2009-05-27 20:35:30 +0000 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2009-05-27 20:35:30 +0000 |
commit | 57c371ee0e49e0fff38bc77b0d52aa890e18ca5c (patch) | |
tree | a37eb133537a5f8bed1a28fb309518258fe3717e /apps/plugins | |
parent | e299fb3716d904f818c063e1a316a875c530c794 (diff) | |
download | rockbox-57c371ee0e49e0fff38bc77b0d52aa890e18ca5c.tar.gz rockbox-57c371ee0e49e0fff38bc77b0d52aa890e18ca5c.zip |
Commit next part of FS# 10138 by Teruaki Kawashima. Check for PLAY_MODE before enabling pause after hold. Fixes a bug where toggling hold would confuse the game state.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21104 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/spacerocks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/spacerocks.c b/apps/plugins/spacerocks.c index 6879ab6ee9..39de40cdd2 100644 --- a/apps/plugins/spacerocks.c +++ b/apps/plugins/spacerocks.c | |||
@@ -2017,8 +2017,8 @@ enum plugin_status start_game(void) | |||
2017 | button = rb->button_get(false); | 2017 | button = rb->button_get(false); |
2018 | 2018 | ||
2019 | #ifdef HAS_BUTTON_HOLD | 2019 | #ifdef HAS_BUTTON_HOLD |
2020 | if (rb->button_hold()) | 2020 | if (rb->button_hold() && game_state == PLAY_MODE) |
2021 | game_state = PAUSE_MODE; | 2021 | game_state = PAUSE_MODE; |
2022 | #endif | 2022 | #endif |
2023 | 2023 | ||
2024 | switch(button) | 2024 | switch(button) |