Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 833538a

Browse files
committed
[[ Tutorial ]] Don't attempt to shortcut scripting step
The script will never be correct prior to the step.
1 parent 4accd19 commit 833538a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Toolset/palettes/tutorial/revtutorial.livecodescript

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2450,11 +2450,17 @@ function revTutorialCheckWaitCondition pActionData, pBeforeDisplay
24502450
end if
24512451
break
24522452
case "scripted"
2453+
# Don't try and shortcut this step
2454+
if pBeforeDisplay then
2455+
break
2456+
end if
2457+
24532458
# This code path is triggered by any propertyChanged message,
24542459
# so if the script hasn't changed then don't do anything.
24552460
local tScript
24562461
put the script of tObject into tScript
2457-
if tScript is sWait["current script"] then
2462+
revTutorialCompareScript tScript, sWait["current script"]
2463+
if the result is empty then
24582464
break
24592465
end if
24602466
local tMistake

0 commit comments

Comments
 (0)