diff options
author | Eugene Sandulenko | 2016-07-06 12:47:39 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | a6ded367c831152252138ba2981be88f48401886 (patch) | |
tree | c4260c9508f362c26bbec845b47f2c54e5398728 /engines/director/director.cpp | |
parent | 7710390ab4e2d46bff7e0c7a43e30d6ca6378ca9 (diff) | |
download | scummvm-rg350-a6ded367c831152252138ba2981be88f48401886.tar.gz scummvm-rg350-a6ded367c831152252138ba2981be88f48401886.tar.bz2 scummvm-rg350-a6ded367c831152252138ba2981be88f48401886.zip |
DIRECTOR: Lingo: Further work on one-liner ifs
Diffstat (limited to 'engines/director/director.cpp')
-rw-r--r-- | engines/director/director.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp index a39894e50c..cc39573f99 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -109,8 +109,9 @@ Common::Error DirectorEngine::run() { _currentScore = nullptr; _lingo->addCode("--\n\ - --repeat with x = 1 to 5\n\ - set x = 4\n\ + set x = 1\n\ + if 5 then exit\n\ + repeat with x = 1 to 5\n\ if x = 1 then\n\ put 1\n\ else if x = 2 then\n\ @@ -120,7 +121,7 @@ Common::Error DirectorEngine::run() { end if\n\ if x = 4 then put 4\n\ else put 5\n\ - --end repeat\n\ + end repeat\n\ ", kMovieScript, 2); _lingo->executeScript(kMovieScript, 2); |