aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/op_test.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2009-06-06 17:48:09 +0000
committerEugene Sandulenko2009-06-06 17:48:09 +0000
commitea3373708c6aaea0f04543b913883dbb74556f52 (patch)
tree1adbf3e565fd784b2878c3e34d716caaaab4ab88 /engines/agi/op_test.cpp
parentd6a4dbeb1d41d7d51e58822db9e4036fd1fbeeae (diff)
downloadscummvm-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.cpp2
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) {