From c22784449f4cb3a54b37beb2d6660ae89ffe7bfb Mon Sep 17 00:00:00 2001 From: Nicola Mettifogo Date: Sat, 15 Sep 2007 12:16:43 +0000 Subject: Fixed BRA parser table for scripts. svn-id: r28905 --- engines/parallaction/exec_br.cpp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'engines/parallaction/exec_br.cpp') diff --git a/engines/parallaction/exec_br.cpp b/engines/parallaction/exec_br.cpp index c79608131b..21064d30f4 100644 --- a/engines/parallaction/exec_br.cpp +++ b/engines/parallaction/exec_br.cpp @@ -29,12 +29,13 @@ namespace Parallaction { #define INST_TEXT 23 #define INST_MUL 24 #define INST_DIV 25 -#define INST_IF 26 -#define INST_IFEQ 27 -#define INST_IFLT 28 -#define INST_IFGT 29 -#define INST_ENDIF 30 -#define INST_STOP 31 +#define INST_IFEQ 26 +#define INST_IFLT 27 +#define INST_IFGT 28 +#define INST_ENDIF 29 +#define INST_STOP 30 +#define INST_ENDSCRIPT 31 + typedef OpcodeImpl OpcodeV2; @@ -411,12 +412,18 @@ void Parallaction_br::jobEraseSubtitle(void *parm, Job *job) { if (_subtitle0._old.x != -1000) { _subtitle0.getRect(r); + +// printf("sub0: (%i, %i, %i, %i)\n", r.left, r.top, r.right, r.bottom); + _gfx->restoreBackground(r); } _subtitle0._old = _subtitle0._pos; if (_subtitle1._old.x != -1000) { _subtitle0.getRect(r); + +// printf("sub1: (%i, %i, %i, %i)\n", r.left, r.top, r.right, r.bottom); + _gfx->restoreBackground(r); } _subtitle1._old = _subtitle1._pos; -- cgit v1.2.3