aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parser_ns.cpp
diff options
context:
space:
mode:
authorNicola Mettifogo2008-08-15 02:52:42 +0000
committerNicola Mettifogo2008-08-15 02:52:42 +0000
commitea2a2cbb7c3a0d8721f1968414bd421a43b13596 (patch)
treeb72d683f779dc03c3e102ecf73d6447ceccbcf01 /engines/parallaction/parser_ns.cpp
parentd6ac646d0bebb1a67a3578b3462a65f4c44c4813 (diff)
downloadscummvm-rg350-ea2a2cbb7c3a0d8721f1968414bd421a43b13596.tar.gz
scummvm-rg350-ea2a2cbb7c3a0d8721f1968414bd421a43b13596.tar.bz2
scummvm-rg350-ea2a2cbb7c3a0d8721f1968414bd421a43b13596.zip
Simplified handling of script variables (especially locals).
svn-id: r33889
Diffstat (limited to 'engines/parallaction/parser_ns.cpp')
-rw-r--r--engines/parallaction/parser_ns.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/engines/parallaction/parser_ns.cpp b/engines/parallaction/parser_ns.cpp
index dd4a79a8d2..52256c341c 100644
--- a/engines/parallaction/parser_ns.cpp
+++ b/engines/parallaction/parser_ns.cpp
@@ -221,9 +221,6 @@ DECLARE_ANIM_PARSER(type) {
}
}
- ctxt.a->_oldPos.x = -1000;
- ctxt.a->_oldPos.y = -1000;
-
ctxt.a->_flags |= 0x1000000;
_parser->popTables();
@@ -284,10 +281,6 @@ DECLARE_ANIM_PARSER(moveto) {
DECLARE_ANIM_PARSER(endanimation) {
debugC(7, kDebugParser, "ANIM_PARSER(endanimation) ");
-
- ctxt.a->_oldPos.x = -1000;
- ctxt.a->_oldPos.y = -1000;
-
ctxt.a->_flags |= 0x1000000;
_parser->popTables();
@@ -523,7 +516,7 @@ DECLARE_INSTRUCTION_PARSER(defLocal) {
}
ctxt.inst->_opA.setLocal(&ctxt.locals[index]);
- ctxt.inst->_opB.setImmediate(ctxt.locals[index]._value);
+ ctxt.inst->_opB.setImmediate(ctxt.locals[index].getValue());
ctxt.inst->_index = INST_SET;
}