[Scummvm-cvs-logs] SF.net SVN: scummvm: [26135] scummvm/trunk/backends/platform/symbian/src/ SymbianActions.cpp

anotherguest at users.sourceforge.net anotherguest at users.sourceforge.net
Wed Mar 14 20:32:21 CET 2007


Revision: 26135
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26135&view=rev
Author:   anotherguest
Date:     2007-03-14 12:32:21 -0700 (Wed, 14 Mar 2007)

Log Message:
-----------
Code cleanup in the actions handling.

Modified Paths:
--------------
    scummvm/trunk/backends/platform/symbian/src/SymbianActions.cpp

Modified: scummvm/trunk/backends/platform/symbian/src/SymbianActions.cpp
===================================================================
--- scummvm/trunk/backends/platform/symbian/src/SymbianActions.cpp	2007-03-14 19:28:29 UTC (rev 26134)
+++ scummvm/trunk/backends/platform/symbian/src/SymbianActions.cpp	2007-03-14 19:32:21 UTC (rev 26135)
@@ -142,21 +142,20 @@
 	// 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


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list