From 24df07d29dfeae8df28b74744f71962eb34686fc Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Wed, 15 Nov 2006 22:35:45 +0000 Subject: added handler for flag 618 (cursor display on/off) and workaround a palette glitch svn-id: r24724 --- engines/touche/opcodes.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'engines/touche/opcodes.cpp') diff --git a/engines/touche/opcodes.cpp b/engines/touche/opcodes.cpp index 1a287330d6..b8832799cc 100644 --- a/engines/touche/opcodes.cpp +++ b/engines/touche/opcodes.cpp @@ -411,6 +411,9 @@ void ToucheEngine::op_setFlag() { case 615: _fullRedrawCounter = 1; break; + case 618: + showCursor(val == 0); + break; default: break; } @@ -479,6 +482,18 @@ void ToucheEngine::op_loadRoom() { // _flagsTable[115] = 1; } + if (_currentEpisodeNum == 100 && num == 1 && _currentRoomNum == 2) { + // + // Same problem in script 100... + // + // [021F] (34) LOAD_ROOM(1) + // [xxxx] ... + // [023D] (13) ST[0] = 1 + // [0240] (1E) FLAGS[604] = ST[0] + // [0243] (84) START_PALETTE_FADE_IN(2) + // + _flagsTable[115] = 1; + } res_loadRoom(num); } -- cgit v1.2.3