Unit pathfinding

This commit is contained in:
Anuken
2022-02-09 17:13:02 -05:00
parent a24a94d0b0
commit fa79c5e93a
23 changed files with 841 additions and 151 deletions

View File

@@ -1,6 +1,5 @@
package mindustry.logic;
import arc.*;
import arc.math.*;
import arc.math.geom.*;
import arc.struct.*;
@@ -1055,9 +1054,9 @@ public class LExecutor{
exec.var(varCounter).numval --;
}
if(Core.graphics.getFrameId() != frameId){
if(state.updateId != frameId){
curTime += Time.delta / 60f;
frameId = Core.graphics.getFrameId();
frameId = state.updateId;
}
}
}