From 75f6aa850b5218692b21ef45f35ecf7540d68806 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Wed, 13 Apr 2005 06:30:41 +0000 Subject: Fixed Indy 3 fighting in the "Passport to Adventure" demo. Apparently it expects the same keyboard mapping as FOA does. svn-id: r17578 --- scumm/verbs.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scumm') diff --git a/scumm/verbs.cpp b/scumm/verbs.cpp index bca8751687..d48e1ba3b9 100644 --- a/scumm/verbs.cpp +++ b/scumm/verbs.cpp @@ -369,10 +369,12 @@ void ScummEngine::checkExecVerbs() { } } - if (_gameId == GID_INDY4 && _mouseButStat >= '0' && _mouseButStat <= '9') { + if ((_gameId == GID_INDY4 || _gameId == GID_PASS) && _mouseButStat >= '0' && _mouseButStat <= '9') { // To support keyboard fighting in FOA, we need to remap the number keys. // FOA apparently expects PC scancode values (see script 46 if you want - // to know where I got these numbers from). + // to know where I got these numbers from). Oddly enough, the The Indy 3 + // part of the "Passport to Adventure" demo expects the same keyboard + // mapping, even though the full game doesn't. static const int numpad[10] = { '0', 335, 336, 337, -- cgit v1.2.3