mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-08 11:34:40 -04:00
Revert no-lonely-if
This commit is contained in:
parent
1bd1d8e8d1
commit
14a2dbc50f
1 changed files with 4 additions and 2 deletions
|
@ -77,10 +77,12 @@ var execute = function (sequencer, thread) {
|
|||
if (!edgeWasActivated) {
|
||||
sequencer.retireThread(thread);
|
||||
}
|
||||
} else if (!resolvedValue) {
|
||||
} else {
|
||||
// Not an edge-activated hat: retire the thread
|
||||
// if predicate was false.
|
||||
sequencer.retireThread(thread);
|
||||
if (!resolvedValue) {
|
||||
sequencer.retireThread(thread);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// In a non-hat, report the value visually if necessary if
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue