From ce5a9c9edb9adbfea06ba2b41938b33c9e032e72 Mon Sep 17 00:00:00 2001 From: Lars Persson Date: Wed, 14 Mar 2007 19:32:21 +0000 Subject: Code cleanup in the actions handling. svn-id: r26135 --- backends/platform/symbian/src/SymbianActions.cpp | 27 ++++++++++++------------ 1 file 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 -- cgit v1.2.3