diff options
author | Eugene Sandulenko | 2016-06-20 15:43:36 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 908bcf2065754411f3615b5f8eb505b6154e56fb (patch) | |
tree | 0d1c63782a6cb82a2a279b913ef02c099e632d6b /engines/director/lingo/lingo.cpp | |
parent | bdbb5582aa200e79b71780c50460ab23d5bd7852 (diff) | |
download | scummvm-rg350-908bcf2065754411f3615b5f8eb505b6154e56fb.tar.gz scummvm-rg350-908bcf2065754411f3615b5f8eb505b6154e56fb.tar.bz2 scummvm-rg350-908bcf2065754411f3615b5f8eb505b6154e56fb.zip |
DIRECTOR: Lingo: Initial code for 'if' statements
Diffstat (limited to 'engines/director/lingo/lingo.cpp')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index 1572685bc3..25b449591e 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -130,9 +130,10 @@ void Lingo::executeScript(ScriptType type, uint16 id) { return; } - for(_pc = &_scripts[type][id]->front(); *_pc != STOP;) { - (*((++_pc)[-1]))(); - } + _currentScript = _scripts[type][id]; + _pc = 0; + + execute(_pc); } void Lingo::processEvent(LEvent event, int entityId) { |