[Scummvm-git-logs] scummvm master -> 83188e6cab6d28e1d4388c86f12ff6d6e387a1ac
neuromancer
noreply at scummvm.org
Sat May 7 06:54:14 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
83188e6cab HYPNO: allow to quit the game in menus in wet
Commit: 83188e6cab6d28e1d4388c86f12ff6d6e387a1ac
https://github.com/scummvm/scummvm/commit/83188e6cab6d28e1d4388c86f12ff6d6e387a1ac
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2022-05-07T08:54:44+02:00
Commit Message:
HYPNO: allow to quit the game in menus in wet
Changed paths:
engines/hypno/wet/hard.cpp
diff --git a/engines/hypno/wet/hard.cpp b/engines/hypno/wet/hard.cpp
index 39e4bcedded..d39866995bf 100644
--- a/engines/hypno/wet/hard.cpp
+++ b/engines/hypno/wet/hard.cpp
@@ -103,6 +103,8 @@ void WetEngine::runLevelMenu(Code *code) {
playSound("sound/m_choice.raw", 1, 11025);
_nextLevel = Common::String::format("c%d", _ids[currentLevel]);
cont = false;
+ } else if (event.kbd.keycode == Common::KEYCODE_ESCAPE) {
+ openMainMenuDialog();
}
for (int i = 0; i < maxLevel; i++)
@@ -156,10 +158,11 @@ void WetEngine::runMainMenu(Code *code) {
_name.deleteLastChar();
else if (event.kbd.keycode == Common::KEYCODE_RETURN && !_name.empty()) {
cont = false;
- }
- else if (Common::isAlpha(event.kbd.keycode)) {
+ } else if (Common::isAlpha(event.kbd.keycode)) {
playSound("sound/m_choice.raw", 1);
_name = _name + char(event.kbd.keycode - 32);
+ } if (event.kbd.keycode == Common::KEYCODE_ESCAPE) {
+ openMainMenuDialog();
}
drawImage(*menu, 0, 0, false);
More information about the Scummvm-git-logs
mailing list