Fix wait instruction inconsistency (#9479)
This commit is contained in:
@@ -1230,7 +1230,6 @@ public class LExecutor{
|
|||||||
public int value;
|
public int value;
|
||||||
|
|
||||||
public float curTime;
|
public float curTime;
|
||||||
public long frameId;
|
|
||||||
|
|
||||||
public WaitI(int value){
|
public WaitI(int value){
|
||||||
this.value = value;
|
this.value = value;
|
||||||
@@ -1247,11 +1246,7 @@ public class LExecutor{
|
|||||||
//skip back to self.
|
//skip back to self.
|
||||||
exec.var(varCounter).numval --;
|
exec.var(varCounter).numval --;
|
||||||
exec.yield = true;
|
exec.yield = true;
|
||||||
}
|
|
||||||
|
|
||||||
if(state.updateId != frameId){
|
|
||||||
curTime += Time.delta / 60f;
|
curTime += Time.delta / 60f;
|
||||||
frameId = state.updateId;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user