[Scummvm-cvs-logs] SF.net SVN: scummvm:[52227] scummvm/trunk/engines/hugo/parser.cpp

strangerke at users.sourceforge.net strangerke at users.sourceforge.net
Fri Aug 20 17:55:56 CEST 2010


Revision: 52227
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52227&view=rev
Author:   strangerke
Date:     2010-08-20 15:55:56 +0000 (Fri, 20 Aug 2010)

Log Message:
-----------
Hugo - Add handling of "turbo" key (F8)
- Modify the score line so it looks like the DOS one

Modified Paths:
--------------
    scummvm/trunk/engines/hugo/parser.cpp

Modified: scummvm/trunk/engines/hugo/parser.cpp
===================================================================
--- scummvm/trunk/engines/hugo/parser.cpp	2010-08-20 15:30:30 UTC (rev 52226)
+++ scummvm/trunk/engines/hugo/parser.cpp	2010-08-20 15:55:56 UTC (rev 52227)
@@ -92,11 +92,13 @@
 	case Common::KEYCODE_F6:                        // Inventory
 		showDosInventory();
 		break;
+	case Common::KEYCODE_F8:                        // Turbo mode
+		_config.turboFl ^= 1;
+		break;
 	case Common::KEYCODE_F2:                        // Toggle sound
 	case Common::KEYCODE_F3:                        // Repeat last line
 	case Common::KEYCODE_F4:                        // Save game
 	case Common::KEYCODE_F5:                        // Restore game
-	case Common::KEYCODE_F8:                        // Turbo mode
 	case Common::KEYCODE_F9:                        // Boss button
 		warning("STUB: KeyHandler() - F2-F9 (DOS)");
 		break;
@@ -182,7 +184,7 @@
 	}
 
 	sprintf(_statusLine, ">%s%c", cmdLine, cursor);
-	sprintf(_scoreLine, "Score: %d of %d", _vm.getScore(), _vm.getMaxScore());
+	sprintf(_scoreLine, "F1-Help  %s  Score: %d of %d", (_config.turboFl) ? "T" : " ", _vm.getScore(), _vm.getMaxScore());
 
 	// See if "look" button pressed
 	if (gameStatus.lookFl) {


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