mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-06 08:57:45 +07:00
Fix wait instruction inconsistency (#9479)
This commit is contained in:
parent
778e61e8d5
commit
9d4f5ff87c
@ -1230,7 +1230,6 @@ public class LExecutor{
|
||||
public int value;
|
||||
|
||||
public float curTime;
|
||||
public long frameId;
|
||||
|
||||
public WaitI(int value){
|
||||
this.value = value;
|
||||
@ -1247,11 +1246,7 @@ public class LExecutor{
|
||||
//skip back to self.
|
||||
exec.var(varCounter).numval --;
|
||||
exec.yield = true;
|
||||
}
|
||||
|
||||
if(state.updateId != frameId){
|
||||
curTime += Time.delta / 60f;
|
||||
frameId = state.updateId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user