Skip to content

Commit

Permalink
DIRECTOR: Lingo: Parse basic 'else if' clause
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 3, 2016
1 parent 350f816 commit eb724af
Show file tree
Hide file tree
Showing 6 changed files with 596 additions and 575 deletions.
16 changes: 8 additions & 8 deletions engines/director/director.cpp
Expand Up @@ -94,16 +94,16 @@ Common::Error DirectorEngine::run() {

#if 0
_lingo->addCode("--\n\
if y = 5 then\n\
set x = 5\n\
else if y = 6 then\n\
set x = 6\n\
else\n\
set x = 7\n\
endif\n\
if 5 then\n\
exit\n\
else if 6 then\n\
exit\n\
else if 7 then\n\
exit\n\
end if\n\
", kMovieScript, 2);

_lingo->executeScript(kMovieScript, 2);
//_lingo->executeScript(kMovieScript, 2);

return Common::kNoError;

Expand Down

0 comments on commit eb724af

Please sign in to comment.