diff options
author | Arnaud Boutonné | 2010-08-20 15:55:56 +0000 |
---|---|---|
committer | Arnaud Boutonné | 2010-08-20 15:55:56 +0000 |
commit | 30f1312386e8b6ae0156e48eaac2d54c53985b51 (patch) | |
tree | 0b0b32757b77d705c4e638f21239b993e6790468 /engines/hugo | |
parent | 0b4fef3aa745a873deb99ca9ff95e33d12770f2c (diff) | |
download | scummvm-rg350-30f1312386e8b6ae0156e48eaac2d54c53985b51.tar.gz scummvm-rg350-30f1312386e8b6ae0156e48eaac2d54c53985b51.tar.bz2 scummvm-rg350-30f1312386e8b6ae0156e48eaac2d54c53985b51.zip |
Hugo - Add handling of "turbo" key (F8)
- Modify the score line so it looks like the DOS one
svn-id: r52227
Diffstat (limited to 'engines/hugo')
-rw-r--r-- | engines/hugo/parser.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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) { |