aboutsummaryrefslogtreecommitdiff
path: root/sword2/function.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2005-01-20 07:32:37 +0000
committerTorbjörn Andersson2005-01-20 07:32:37 +0000
commitca58bfed3bb8a31bfd88b84ad376186b1ef83cce (patch)
tree5848b35768497877b2e443d18c8d4daf9eb8ba8b /sword2/function.cpp
parent6f565c0ad88c928e186d1e1f50281fa7c323b75e (diff)
downloadscummvm-rg350-ca58bfed3bb8a31bfd88b84ad376186b1ef83cce.tar.gz
scummvm-rg350-ca58bfed3bb8a31bfd88b84ad376186b1ef83cce.tar.bz2
scummvm-rg350-ca58bfed3bb8a31bfd88b84ad376186b1ef83cce.zip
Fixed bug that I must have introduced during one of my cleanups. The
original code read "LLogic.Logic_up( (*params*65536)+2);". I don't know where this opcode is actually used, though. svn-id: r16600
Diffstat (limited to 'sword2/function.cpp')
-rw-r--r--sword2/function.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sword2/function.cpp b/sword2/function.cpp
index 9c9199cc44..d7a2b1663f 100644
--- a/sword2/function.cpp
+++ b/sword2/function.cpp
@@ -73,7 +73,7 @@ int32 Logic::fnInteract(int32 *params) {
// reference
_scriptVars[PLAYER_ACTION] = 0; // must clear this
- logicUp((params[0] < 16) + 2); // 3rd script of clicked on id
+ logicUp((params[0] << 16) | 2); // 3rd script of clicked on id
// Out, up and around again - pc is saved for current level to be
// returned to.