diff options
author | Eugene Sandulenko | 2009-06-06 17:48:09 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-06-06 17:48:09 +0000 |
commit | ea3373708c6aaea0f04543b913883dbb74556f52 (patch) | |
tree | 1adbf3e565fd784b2878c3e34d716caaaab4ab88 /engines/agi/op_test.cpp | |
parent | d6a4dbeb1d41d7d51e58822db9e4036fd1fbeeae (diff) | |
download | scummvm-rg350-ea3373708c6aaea0f04543b913883dbb74556f52.tar.gz scummvm-rg350-ea3373708c6aaea0f04543b913883dbb74556f52.tar.bz2 scummvm-rg350-ea3373708c6aaea0f04543b913883dbb74556f52.zip |
Correct implementation for set.key opcode. Fixes #2605104: "AGI: Manhunter, F3 hotkey dosent work", removed number of hacks
svn-id: r41259
Diffstat (limited to 'engines/agi/op_test.cpp')
-rw-r--r-- | engines/agi/op_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/op_test.cpp b/engines/agi/op_test.cpp index 952d66278c..ca80798a52 100644 --- a/engines/agi/op_test.cpp +++ b/engines/agi/op_test.cpp @@ -126,7 +126,7 @@ static uint8 testKeypressed() { } static uint8 testController(uint8 cont) { - return game.evKeyp[cont].occured; + return (game.controllerOccured[cont] ? 1 : 0); } static uint8 testPosn(uint8 n, uint8 x1, uint8 y1, uint8 x2, uint8 y2) { |