aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-18 20:46:24 +0200
committerEugene Sandulenko2016-08-18 20:46:43 +0200
commit7178f9c262881322669976497a07ff74ff4c1dfe (patch)
tree1e120e14360a4084cd44cc612d5cb5953022bb77 /engines
parentfa76351b67c41cfe0a4e59da0a6202a2cf08381e (diff)
downloadscummvm-rg350-7178f9c262881322669976497a07ff74ff4c1dfe.tar.gz
scummvm-rg350-7178f9c262881322669976497a07ff74ff4c1dfe.tar.bz2
scummvm-rg350-7178f9c262881322669976497a07ff74ff4c1dfe.zip
DIRECTOR: Lingo: Further work on while..then
Diffstat (limited to 'engines')
-rw-r--r--engines/director/lingo/lingo-code.cpp2
-rw-r--r--engines/director/lingo/lingo-codegen.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-code.cpp b/engines/director/lingo/lingo-code.cpp
index 8c199bb0df..de92efa669 100644
--- a/engines/director/lingo/lingo-code.cpp
+++ b/engines/director/lingo/lingo-code.cpp
@@ -724,7 +724,7 @@ void Lingo::c_ifcode() {
void Lingo::c_whencode() {
Datum d;
- int start = g_lingo->_pc + 1;
+ int start = g_lingo->_pc;
int end = READ_UINT32(&(*g_lingo->_currentScript)[start]);
Common::String eventname((char *)&(*g_lingo->_currentScript)[start]);
diff --git a/engines/director/lingo/lingo-codegen.cpp b/engines/director/lingo/lingo-codegen.cpp
index ac90e62688..44ae8e9492 100644
--- a/engines/director/lingo/lingo-codegen.cpp
+++ b/engines/director/lingo/lingo-codegen.cpp
@@ -183,7 +183,7 @@ void Lingo::define(Common::String &name, int start, int nargs, Common::String *p
if (prefix)
name = *prefix + "-" + name;
- debug(3, "define(\"%s\", %d, %d, %d)", name.c_str(), start, _currentScript->size() - 1, nargs);
+ debugC(3, kDebugLingoCompile, "define(\"%s\", %d, %d, %d)", name.c_str(), start, _currentScript->size() - 1, nargs);
if (!_handlers.contains(name)) { // Create variable if it was not defined
sym = new Symbol;