aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTravis Howell2008-04-30 12:53:05 +0000
committerTravis Howell2008-04-30 12:53:05 +0000
commit5e52a8e533dcf7eaa1497c26dd70af87b4f58b7f (patch)
tree77c966d4ba9710bce378a737ef53606dbb3e32be /engines/scumm
parent21dc872873904314c919643bc10cc58b85bcfc75 (diff)
downloadscummvm-rg350-5e52a8e533dcf7eaa1497c26dd70af87b4f58b7f.tar.gz
scummvm-rg350-5e52a8e533dcf7eaa1497c26dd70af87b4f58b7f.tar.bz2
scummvm-rg350-5e52a8e533dcf7eaa1497c26dd70af87b4f58b7f.zip
Fix cycling of speech and subtitle options via Ctrl t.
svn-id: r31787
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/dialogs.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp
index 23efa05dd2..5b6c2bcf35 100644
--- a/engines/scumm/dialogs.cpp
+++ b/engines/scumm/dialogs.cpp
@@ -928,6 +928,7 @@ void SubtitleSettingsDialog::handleKeyDown(Common::KeyState state) {
void SubtitleSettingsDialog::open() {
cycleValue();
InfoDialog::open();
+ setResult(_value);
}
void SubtitleSettingsDialog::cycleValue() {
@@ -937,11 +938,12 @@ void SubtitleSettingsDialog::cycleValue() {
"Subtitles Only"
};
- _value = (_value + 1) % 3;
+ _value += 1;
+ if (_value > 2)
+ _value = 0;
setInfoText(subtitleDesc[_value]);
- setResult(_value);
_timer = getMillis() + 1500;
}