mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-08 20:14:00 -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) {
|
if (!edgeWasActivated) {
|
||||||
sequencer.retireThread(thread);
|
sequencer.retireThread(thread);
|
||||||
}
|
}
|
||||||
} else if (!resolvedValue) {
|
} else {
|
||||||
// Not an edge-activated hat: retire the thread
|
// Not an edge-activated hat: retire the thread
|
||||||
// if predicate was false.
|
// if predicate was false.
|
||||||
sequencer.retireThread(thread);
|
if (!resolvedValue) {
|
||||||
|
sequencer.retireThread(thread);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// In a non-hat, report the value visually if necessary if
|
// In a non-hat, report the value visually if necessary if
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue