mirror of
https://github.com/scummvm/scummvm.git
synced 2026-11-18 21:34:48 +00:00
DIRECTOR: LINGO: Added test for 'global'
This commit is contained in:
1 parent
4421073893
commit
53a2ca9c5e
1 file changed
+25
@@ -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
|
||||
Reference in new issue
Block a user