From 2b29dfe0c796a5077fea4e5b0a6dff9a3feeb1b6 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 19 Oct 2011 20:02:02 +0000 Subject: TOLTECS: Added the ability to skip the current dialog line with the escape key --- engines/toltecs/toltecs.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines') 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; } -- cgit v1.2.3