From 30f1312386e8b6ae0156e48eaac2d54c53985b51 Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Fri, 20 Aug 2010 15:55:56 +0000 Subject: Hugo - Add handling of "turbo" key (F8) - Modify the score line so it looks like the DOS one svn-id: r52227 --- engines/hugo/parser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/hugo') diff --git a/engines/hugo/parser.cpp b/engines/hugo/parser.cpp index 41d9a5afb5..5fa0dac774 100644 --- a/engines/hugo/parser.cpp +++ b/engines/hugo/parser.cpp @@ -92,11 +92,13 @@ void Parser::keyHandler(uint16 nChar, uint16 nFlags) { 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 @@ void Parser::charHandler() { } 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) { -- cgit v1.2.3