diff options
author | Travis Howell | 2006-04-13 22:29:08 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-13 22:29:08 +0000 |
commit | cd9dde81f45a0024574ab70bd6830698d0c8007c (patch) | |
tree | 55829eab18594f500eef17f46f874dde51d0428c /engines/simon | |
parent | f2370a0560fdae4e748f7fbc1c7da6cd2b44a255 (diff) | |
download | scummvm-rg350-cd9dde81f45a0024574ab70bd6830698d0c8007c.tar.gz scummvm-rg350-cd9dde81f45a0024574ab70bd6830698d0c8007c.tar.bz2 scummvm-rg350-cd9dde81f45a0024574ab70bd6830698d0c8007c.zip |
Add checkPaths function for FF
svn-id: r21851
Diffstat (limited to 'engines/simon')
-rw-r--r-- | engines/simon/items.cpp | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/engines/simon/items.cpp b/engines/simon/items.cpp index f2cda580a1..6a0961e5d6 100644 --- a/engines/simon/items.cpp +++ b/engines/simon/items.cpp @@ -1865,8 +1865,42 @@ void SimonEngine::o3_hyperLinkOff() { } void SimonEngine::o3_checkPaths() { - // 173 - warning("STUB: script opcode 173"); + // 173 check paths + int val, count; + const uint8 *pathVal1 = _pathValues1; + bool result = false; + + count = _variableArray2[38]; + while (count) { + val = pathVal1[2]; + if (val == _variableArray2[50] || + val == _variableArray2[50] || + val == _variableArray2[51] || + val == _variableArray2[201] || + val == _variableArray2[203] || + val == _variableArray2[205] || + val == _variableArray2[207] || + val == _variableArray2[209] || + val == _variableArray2[211] || + val == _variableArray2[213] || + val == _variableArray2[215] || + val == _variableArray2[219] || + val == _variableArray2[220] || + val == _variableArray2[221] || + val == _variableArray2[222] || + val == _variableArray2[223] || + val == _variableArray2[224] || + val == _variableArray2[225] || + val == _variableArray2[226]) { + result = true; + break; + } + + count--; + pathVal1++; + } + + _variableArray2[57] = result; } void SimonEngine::o3_mouseOff() { |