aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Persson2007-03-14 19:32:21 +0000
committerLars Persson2007-03-14 19:32:21 +0000
commitce5a9c9edb9adbfea06ba2b41938b33c9e032e72 (patch)
treebe811bef740bd83975782e1eabf2a453ffbda867
parentf93ef30820ca51ae82de85e7f9f0bb3de3d6a651 (diff)
downloadscummvm-rg350-ce5a9c9edb9adbfea06ba2b41938b33c9e032e72.tar.gz
scummvm-rg350-ce5a9c9edb9adbfea06ba2b41938b33c9e032e72.tar.bz2
scummvm-rg350-ce5a9c9edb9adbfea06ba2b41938b33c9e032e72.zip
Code cleanup in the actions handling.
svn-id: r26135
-rw-r--r--backends/platform/symbian/src/SymbianActions.cpp27
1 files changed, 13 insertions, 14 deletions
diff --git a/backends/platform/symbian/src/SymbianActions.cpp b/backends/platform/symbian/src/SymbianActions.cpp
index 484774ab37..25dd1472c8 100644
--- a/backends/platform/symbian/src/SymbianActions.cpp
+++ b/backends/platform/symbian/src/SymbianActions.cpp
@@ -142,21 +142,20 @@ void SymbianActions::initInstanceGame() {
// Save
if (is_simon || is_gob || is_kyra || is_touche)
_action_enabled[ACTION_SAVE] = false;
- else if (is_queen) {
+ else {
_action_enabled[ACTION_SAVE] = true;
- _key_action[ACTION_SAVE].setAscii(SDLK_F1); // F1 key for FOTAQ
- } else if (is_sky) {
- _action_enabled[ACTION_SAVE] = true;
- _key_action[ACTION_SAVE].setAscii(63);
- } else if (is_cine) {
- _action_enabled[ACTION_SAVE] = true;
- _key_action[ACTION_SAVE].setAscii(SDLK_F10); // F10
- } else if (is_agi) {
- _action_enabled[ACTION_SAVE] = true;
- _key_action[ACTION_SAVE].setAscii(SDLK_ESCAPE);
- } else {
- _action_enabled[ACTION_SAVE] = true;
- _key_action[ACTION_SAVE].setAscii(SDLK_F5); // F5 key
+
+ if (is_queen) {
+ _key_action[ACTION_SAVE].setAscii(SDLK_F1); // F1 key for FOTAQ
+ } else if (is_sky) {
+ _key_action[ACTION_SAVE].setAscii(63);
+ } else if (is_cine) {
+ _key_action[ACTION_SAVE].setAscii(SDLK_F10); // F10
+ } else if (is_agi) {
+ _key_action[ACTION_SAVE].setAscii(SDLK_ESCAPE);
+ } else {
+ _key_action[ACTION_SAVE].setAscii(SDLK_F5); // F5 key
+ }
}
// Enable fast mode