mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-13 15:00:06 -04:00
Revert no-lonely-if
This commit is contained in:
parent
04d7f4f019
commit
22bf947ddb
1 changed files with 4 additions and 2 deletions
|
@ -219,9 +219,11 @@ Sequencer.prototype.stepToProcedure = function (thread, procedureCode) {
|
|||
var doWarp = definitionBlock.mutation.warp;
|
||||
if (doWarp) {
|
||||
thread.peekStackFrame().warpMode = true;
|
||||
} else if (isRecursive) {
|
||||
} else {
|
||||
// In normal-mode threads, yield any time we have a recursive call.
|
||||
thread.status = Thread.STATUS_YIELD;
|
||||
if (isRecursive) {
|
||||
thread.status = Thread.STATUS_YIELD;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue