Fixed: Units lose LogicAI after reading. (#8920)
This commit is contained in:
@@ -40,6 +40,12 @@ public class LogicAI extends AIController{
|
|||||||
private float lastMoveX, lastMoveY;
|
private float lastMoveX, lastMoveY;
|
||||||
private int lastPathId = 0;
|
private int lastPathId = 0;
|
||||||
|
|
||||||
|
// LogicAI state should not be reset after reading.
|
||||||
|
@Override
|
||||||
|
public boolean keepState(){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateMovement(){
|
public void updateMovement(){
|
||||||
if(control == LUnitControl.pathfind){
|
if(control == LUnitControl.pathfind){
|
||||||
|
|||||||
Reference in New Issue
Block a user