diff options
author | Eugene Sandulenko | 2016-07-06 10:53:14 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 7710390ab4e2d46bff7e0c7a43e30d6ca6378ca9 (patch) | |
tree | 1c7fd0edc35329cae22995774b36c8a4c1a2e2a7 /engines/director/director.cpp | |
parent | e7a4f22b598ba0437bfbe7202198ad1fa9ed9f1c (diff) | |
download | scummvm-rg350-7710390ab4e2d46bff7e0c7a43e30d6ca6378ca9.tar.gz scummvm-rg350-7710390ab4e2d46bff7e0c7a43e30d6ca6378ca9.tar.bz2 scummvm-rg350-7710390ab4e2d46bff7e0c7a43e30d6ca6378ca9.zip |
Revert "DIRECTOR: Lingo: More work on if statement overhaul"
This reverts commit 0f5a094d7fd30121994d8f2d486b171791cf5968.
Diffstat (limited to 'engines/director/director.cpp')
-rw-r--r-- | engines/director/director.cpp | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp index 8063cf8d6b..a39894e50c 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -109,15 +109,8 @@ Common::Error DirectorEngine::run() { _currentScore = nullptr; _lingo->addCode("--\n\ - if x = 10 then put 10\n\ --- elseif x = 11 then put 11\n\ --- elseif x = 12 then put 12\n\ -", kMovieScript, 2); - -_lingo->executeScript(kMovieScript, 2); - - _lingo->addCode("--\n\ --- repeat with x = 1 to 5\n\ + --repeat with x = 1 to 5\n\ + set x = 4\n\ if x = 1 then\n\ put 1\n\ else if x = 2 then\n\ @@ -125,12 +118,9 @@ _lingo->executeScript(kMovieScript, 2); put 2.2\n\ else if x = 3 then put 3\n\ end if\n\ --- end repeat\n\ - if x = 6 then put 6\n\ - else put 0\n\ --- if x = 10 then put 10\n\ --- elseif x = 11 then put 11\n\ --- elseif x = 12 then put 12\n\ + if x = 4 then put 4\n\ + else put 5\n\ + --end repeat\n\ ", kMovieScript, 2); _lingo->executeScript(kMovieScript, 2); |