aboutsummaryrefslogtreecommitdiff
path: root/engines/cine
diff options
context:
space:
mode:
authorKari Salminen2008-05-28 13:00:27 +0000
committerKari Salminen2008-05-28 13:00:27 +0000
commit51e4e487b1440f9142b5270beb7ed55abdac6f63 (patch)
treecacd5c111a5e3c91cb1fa1bfac9ebeecc5df01f8 /engines/cine
parentf0195a01f6efeecacaf5564eb51bd9115e589f5c (diff)
downloadscummvm-rg350-51e4e487b1440f9142b5270beb7ed55abdac6f63.tar.gz
scummvm-rg350-51e4e487b1440f9142b5270beb7ed55abdac6f63.tar.bz2
scummvm-rg350-51e4e487b1440f9142b5270beb7ed55abdac6f63.zip
Implemented opcode 0x9A (o2_wasZoneChecked).
svn-id: r32336
Diffstat (limited to 'engines/cine')
-rw-r--r--engines/cine/script_os.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/cine/script_os.cpp b/engines/cine/script_os.cpp
index f9f0d3f031..7c88e3ffe3 100644
--- a/engines/cine/script_os.cpp
+++ b/engines/cine/script_os.cpp
@@ -232,7 +232,7 @@ const Opcode OSScript::_opcodeTable[] = {
/* 98 */
{ 0, 0 },
{ 0, 0 },
- { &FWScript::o2_wasZoneChecked, "" },
+ { &FWScript::o2_wasZoneChecked, "b" },
{ &FWScript::o2_op9B, "wwwwwwww" }, /* TODO: Name this opcode properly. */
/* 9C */
{ &FWScript::o2_op9C, "wwww" }, /* TODO: Name this opcode properly. */
@@ -649,10 +649,12 @@ int FWScript::o2_loadBg() {
return 0;
}
-/*! \todo Implement this instruction
+/*! \todo Check the current implementation for correctness
*/
int FWScript::o2_wasZoneChecked() {
- warning("STUB: o2_wasZoneChecked()");
+ byte param = getNextByte();
+ _compare = (param < 16 && zoneData[param]);
+ debugC(5, kCineDebugScript, "Line: %d: o2_wasZoneChecked(%d)", _line, param);
return 0;
}