mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-12 22:42:03 -04:00
Make Scratch 3 project timer more compatible with Scratch 2 currentMSecs usage
These compatibility changes: - Use runtime.currentMSecs for the Clock timer "now" value - Start executing hats before other threads change values - Update test and fixtures to work with earlier hat execution - Add test for hat execution block order
This commit is contained in:
parent
c5abcf5888
commit
2a60391fb4
9 changed files with 31 additions and 17 deletions
src/engine
|
@ -138,7 +138,6 @@ class Sequencer {
|
|||
activeThread.status === Thread.STATUS_DONE) {
|
||||
// Finished with this thread.
|
||||
stoppedThread = true;
|
||||
this.runtime.updateCurrentMSecs();
|
||||
}
|
||||
}
|
||||
// We successfully ticked once. Prevents running STATUS_YIELD_TICK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue