mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-12-15 15:20:57 -08:00
Fix wait instruction inconsistency (#9479)
This commit is contained in:
parent
778e61e8d5
commit
9d4f5ff87c
1 changed files with 0 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue