File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ namespace microcode {
8787 }
8888
8989 private reset ( ) {
90- console . log ( `resetting rule ${ this . index } ` )
9190 this . wakeTime = 0
9291 this . actionRunning = false
9392 this . modifierIndex = 0
@@ -101,10 +100,9 @@ namespace microcode {
101100 } else if ( resource == OutputResource . Speaker ) music . stopAllSounds ( )
102101 this . actionRunning = false
103102 // give the background fiber chance to finish unless it is waiting
104- // while (this.wakeTime == 0 && this.backgroundActive) {
105- // console.log(`killing rule ${this.index} ${this.wakeTime}...`)
106- // basic.pause(0)
107- // }
103+ while ( this . wakeTime == 0 && this . backgroundActive ) {
104+ basic . pause ( 0 )
105+ }
108106 }
109107
110108 public matchWhen ( tid : number , filter : number = undefined ) : boolean {
@@ -172,13 +170,7 @@ namespace microcode {
172170 this . backgroundActive = true
173171 while ( this . ok ( ) ) {
174172 if ( this . wakeTime > 0 ) {
175- console . log (
176- `rule ${ this . index } sleeping for ${ this . wakeTime } ms`
177- )
178173 basic . pause ( this . wakeTime )
179- console . log (
180- `rule ${ this . index } woke up after ${ this . wakeTime } ms`
181- )
182174 this . wakeTime = 0
183175 if ( this . ok ( ) ) {
184176 this . interp . addEvent ( {
You can’t perform that action at this time.
0 commit comments