From ea9e7df0a8664a49e2ae572864ee70eccbfb06c9 Mon Sep 17 00:00:00 2001 From: athrxx Date: Fri, 28 Feb 2014 00:11:55 +0100 Subject: CINE CP --- engines/cine/script_fw.cpp | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'engines/cine/script_fw.cpp') diff --git a/engines/cine/script_fw.cpp b/engines/cine/script_fw.cpp index 86eb709d5a..9692c54b7b 100644 --- a/engines/cine/script_fw.cpp +++ b/engines/cine/script_fw.cpp @@ -707,7 +707,29 @@ int FWScript::execute() { if (_script._size) { while (!ret) { - _line = _pos; + + if (g_cine->getGameType() == Cine::GType_OS) { + if (_pos == 0x0f9a) { + if (!scumm_stricmp(currentPrcName, "AUTO00.PRC")) + g_cine->_globalVars[200] = g_cine->_objectTable[235].costume; + } + } else { + if (_pos == 0x2c) { + if (g_cine->_objectTable[1].x == 0x0131) { + if (!scumm_stricmp(currentPrcName, "TOTO.PRC")) + g_cine->_objectTable[2].x = 0x02; + } + } /*else if (!scumm_stricmp(currentPrcName, "CODE2.PRC")) { + if (_pos == 1) { + //globalVars[0] = objectTable[scriptElement->scriptPtr[6]].frame; + } else if (_pos == 504) { + //_currentScriptElement->localVars[1] = _currentScriptElement->localVars[2] = 0; + //globalVars[251] = 0; + g_cine->_globalVars[251] = g_cine->_globalVars[251]; + } + }*/ + } + byte opcode = getNextByte(); OpFunc handler = _info->opcodeHandler(opcode); -- cgit v1.2.3