aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2011-10-19 20:02:02 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:11 +0100
commit2b29dfe0c796a5077fea4e5b0a6dff9a3feeb1b6 (patch)
tree1702d097bc833122b740f1650ed529a5b0e7fd2a /engines
parent6fc40c7c24ee33ba2c7f92108b30130987001e8a (diff)
downloadscummvm-rg350-2b29dfe0c796a5077fea4e5b0a6dff9a3feeb1b6.tar.gz
scummvm-rg350-2b29dfe0c796a5077fea4e5b0a6dff9a3feeb1b6.tar.bz2
scummvm-rg350-2b29dfe0c796a5077fea4e5b0a6dff9a3feeb1b6.zip
TOLTECS: Added the ability to skip the current dialog line with the escape key
Diffstat (limited to 'engines')
-rw-r--r--engines/toltecs/toltecs.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/toltecs/toltecs.cpp b/engines/toltecs/toltecs.cpp
index 6b2704ccb6..37834e8445 100644
--- a/engines/toltecs/toltecs.cpp
+++ b/engines/toltecs/toltecs.cpp
@@ -334,6 +334,14 @@ void ToltecsEngine::updateInput() {
case Common::KEYCODE_F9:
loadgame("toltecs.001");
break;
+ case Common::KEYCODE_ESCAPE:
+ // Skip current dialog line, if a dialog is active
+ if (_screen->getTalkTextDuration() > 0) {
+ _sound->stopSpeech();
+ _screen->finishTalkTextItems();
+ _keyState.reset(); // event consumed
+ }
+ break;
default:
break;
}