Fixed: Units lose LogicAI after reading. (#8920)

This commit is contained in:
MinRi2
2023-08-13 22:18:06 +08:00
committed by GitHub
parent 2b05264093
commit f2c476a716

View File

@@ -40,6 +40,12 @@ public class LogicAI extends AIController{
private float lastMoveX, lastMoveY;
private int lastPathId = 0;
// LogicAI state should not be reset after reading.
@Override
public boolean keepState(){
return true;
}
@Override
public void updateMovement(){
if(control == LUnitControl.pathfind){