Fixed Indy 3 fighting in the "Passport to Adventure" demo. Apparently it

expects the same keyboard mapping as FOA does.

svn-id: r17578
This commit is contained in:
Torbjörn Andersson 2005-04-13 06:30:41 +00:00
parent c9388604a3
commit 75f6aa850b

View File

@ -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,