aboutsummaryrefslogtreecommitdiff
path: root/engines/director
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-29 00:41:01 +0100
committerEugene Sandulenko2019-12-29 00:51:16 +0100
commit53a2ca9c5edca76ca6df33a8bc045d476e3f84ca (patch)
tree503d14f8827f91f380d74e2d0bb2abb533393d05 /engines/director
parent44210738937408e3cbffd358f5948154df4cf269 (diff)
downloadscummvm-rg350-53a2ca9c5edca76ca6df33a8bc045d476e3f84ca.tar.gz
scummvm-rg350-53a2ca9c5edca76ca6df33a8bc045d476e3f84ca.tar.bz2
scummvm-rg350-53a2ca9c5edca76ca6df33a8bc045d476e3f84ca.zip
DIRECTOR: LINGO: Added test for 'global'
Diffstat (limited to 'engines/director')
-rw-r--r--engines/director/lingo/tests/global.lingo25
1 files changed, 25 insertions, 0 deletions
diff --git a/engines/director/lingo/tests/global.lingo b/engines/director/lingo/tests/global.lingo
new file mode 100644
index 0000000000..a658a44115
--- /dev/null
+++ b/engines/director/lingo/tests/global.lingo
@@ -0,0 +1,25 @@
+on initPattern
+ global MaxPattern
+ set MaxPattern = 65
+ put "first: " & MaxPattern
+ set a = 5
+end initPattern
+
+on increase
+ global MaxPattern
+ set MaxPattern = MaxPattern + 1
+ put MaxPattern
+ set a = 10
+end increase
+
+set a = 8
+set MaxPattern = 3
+
+initPattern
+
+increase
+increase
+
+put MaxPattern
+
+put a