aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2007-06-23 14:16:04 +0000
committerMax Horn2007-06-23 14:16:04 +0000
commitdcae6d14a4f475c42c5f759ff422b0e2808f427c (patch)
treed809306a6ca0dd0ec972fd7482e3d0084563c709 /engines
parent83172bc8b0eacbd8a918416cc583b4d4ffd6ad90 (diff)
downloadscummvm-rg350-dcae6d14a4f475c42c5f759ff422b0e2808f427c.tar.gz
scummvm-rg350-dcae6d14a4f475c42c5f759ff422b0e2808f427c.tar.bz2
scummvm-rg350-dcae6d14a4f475c42c5f759ff422b0e2808f427c.zip
Changed the way VAR_VERSION_KEY is handled
svn-id: r27665
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/input.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/scumm/input.cpp b/engines/scumm/input.cpp
index 8b5167aa54..aaad0ff30c 100644
--- a/engines/scumm/input.cpp
+++ b/engines/scumm/input.cpp
@@ -391,10 +391,12 @@ void ScummEngine_v8::processKeyboard(Common::KeyState lastKeyHit) {
void ScummEngine_v7::processKeyboard(Common::KeyState lastKeyHit) {
- // COMI version string is hard coded in the engine, hence we don't
- // invoke versionDialog here (it would only show nonsense).
- // Dig/FT version strings are partly hard coded, too.
- if (_game.version == 7 && lastKeyHit.ascii == VAR(VAR_VERSION_KEY)) {
+ // VAR_VERSION_KEY (usually ctrl-v) is used in COMI, Dig and FT to trigger
+ // a version dialog, unless VAR_VERSION_KEY is set to 0. However, the COMI
+ // version string is hard coded in the engine, hence we don't invoke
+ // versionDialog for it. Dig/FT version strings are partly hard coded, too.
+ if (_game.id != GID_CMI && 0 != VAR(VAR_VERSION_KEY) &&
+ lastKeyHit.keycode == Common::KEYCODE_v && lastKeyHit.flags == Common::KBD_CTRL) {
versionDialog();
return;
}