Skip to content

Commit

Permalink
Revert "DIRECTOR: Lingo: More work on if statement overhaul"
Browse files Browse the repository at this point in the history
This reverts commit 0f5a094d7fd30121994d8f2d486b171791cf5968.
  • Loading branch information
sev- committed Aug 3, 2016
1 parent e7a4f22 commit 7710390
Show file tree
Hide file tree
Showing 3 changed files with 322 additions and 345 deletions.
20 changes: 5 additions & 15 deletions engines/director/director.cpp
Expand Up @@ -109,28 +109,18 @@ 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\
put 2.1\n\
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);
Expand Down

0 comments on commit 7710390

Please sign in to comment.