aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/exec_br.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2007-09-15 12:16:43 +0000
committerNicola Mettifogo2007-09-15 12:16:43 +0000
commitc22784449f4cb3a54b37beb2d6660ae89ffe7bfb (patch)
tree9cf56aa7430417e4954b8c83d7d0cf1b9e74a8eb /engines/parallaction/exec_br.cpp
parent5fa2b1a3c5b63ddee8a7e3d5dcf4efc8cf9e04ef (diff)
downloadscummvm-rg350-c22784449f4cb3a54b37beb2d6660ae89ffe7bfb.tar.gz
scummvm-rg350-c22784449f4cb3a54b37beb2d6660ae89ffe7bfb.tar.bz2
scummvm-rg350-c22784449f4cb3a54b37beb2d6660ae89ffe7bfb.zip
Fixed BRA parser table for scripts.
svn-id: r28905
Diffstat (limited to 'engines/parallaction/exec_br.cpp')
-rw-r--r--engines/parallaction/exec_br.cpp19
1 files changed, 13 insertions, 6 deletions
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<Parallaction_br> 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;