aboutsummaryrefslogtreecommitdiff
path: root/engines/director/director.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-07-04 22:45:34 +0200
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commit2dba6126b72cfcc1643e7623e6f558a41931bf37 (patch)
tree3e6168a042177fc0858341e08b4e897d750e750e /engines/director/director.cpp
parent22f72fc2a71891368799f1400ab8278d0f8c1d7f (diff)
downloadscummvm-rg350-2dba6126b72cfcc1643e7623e6f558a41931bf37.tar.gz
scummvm-rg350-2dba6126b72cfcc1643e7623e6f558a41931bf37.tar.bz2
scummvm-rg350-2dba6126b72cfcc1643e7623e6f558a41931bf37.zip
DIRECTOR: Lingo: Eat all leading whitespaces
Diffstat (limited to 'engines/director/director.cpp')
-rw-r--r--engines/director/director.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp
index e145a4db8e..d9e43124cd 100644
--- a/engines/director/director.cpp
+++ b/engines/director/director.cpp
@@ -92,20 +92,22 @@ Common::Error DirectorEngine::run() {
_lingo = new Lingo(this);
_soundManager = new DirectorSound();
-#if 0
+#if 1
_lingo->addCode("--\n\
- if 5 then\n\
- exit\n\
- else if 6 then\n\
- put x\n\
- exit\n\
- else if 7 then exit\n\
- end if\n\
- if 5 then exit\n\
- else exit\n\
+ -- repeat with x = 1 to 5\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\
+ if x = 4 then put 4\n\
+ else put 5\n\
+ -- end repeat\n\
", kMovieScript, 2);
-//_lingo->executeScript(kMovieScript, 2);
+_lingo->executeScript(kMovieScript, 2);
return Common::kNoError;