aboutsummaryrefslogtreecommitdiff
path: root/simon/items.cpp
diff options
context:
space:
mode:
authorTravis Howell2002-12-22 03:54:51 +0000
committerTravis Howell2002-12-22 03:54:51 +0000
commit0c3626c9f4484ab755285fdb77c097e4c6bf7247 (patch)
treef8605d17571f3c940712792ec329af6530d8c2f2 /simon/items.cpp
parentb78a518f0400b2e34f326da3e5ceddfea2137ea3 (diff)
downloadscummvm-rg350-0c3626c9f4484ab755285fdb77c097e4c6bf7247.tar.gz
scummvm-rg350-0c3626c9f4484ab755285fdb77c097e4c6bf7247.tar.bz2
scummvm-rg350-0c3626c9f4484ab755285fdb77c097e4c6bf7247.zip
Some _lock_word corrections
svn-id: r6054
Diffstat (limited to 'simon/items.cpp')
-rw-r--r--simon/items.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/simon/items.cpp b/simon/items.cpp
index 3143d0d2e2..2086c37f8b 100644
--- a/simon/items.cpp
+++ b/simon/items.cpp
@@ -1498,10 +1498,17 @@ void SimonState::o_unk_127()
void SimonState::o_unk_120(uint a)
{
uint16 id = TO_BE_16(a);
- _lock_word |= 0x4000;
- _vc_ptr = (byte *)&id;
- vc_15_wakeup_id();
- _lock_word &= ~0x4000;
+ if (_game & GAME_SIMON2) {
+ _lock_word |= 0x8000;
+ _vc_ptr = (byte *)&id;
+ vc_15_wakeup_id();
+ _lock_word &= ~0x8000;
+ } else {
+ _lock_word |= 0x4000;
+ _vc_ptr = (byte *)&id;
+ vc_15_wakeup_id();
+ _lock_word &= ~0x4000;
+ }
}
void SimonState::o_unk_163(uint a)
@@ -1538,10 +1545,10 @@ void SimonState::o_unk_99_simon2(uint a, uint b)
items[0] = TO_BE_16(a);
items[1] = TO_BE_16(b);
- _lock_word |= 0x4000;
+ _lock_word |= 0x8000;
_vc_ptr = (byte *)&items;
vc_60_kill_thread();
- _lock_word &= ~0x4000;
+ _lock_word &= ~0x8000;
}
/* OK */