Disabled flow fields for RTS / Removed pathfind command

This commit is contained in:
Anuken
2022-02-20 14:29:21 -05:00
parent 5e88c5d090
commit 672dfc8538
7 changed files with 13 additions and 27 deletions

View File

@@ -110,6 +110,11 @@ public class Team implements Comparable<Team>{
return (state.rules.waves || state.rules.attackMode) && this == state.rules.waveTeam;
}
/** @return whether this team needs a flow field for "dumb" wave pathfinding. */
public boolean needsFlowField(){
return isAI() && !rules().rtsAi;
}
public boolean isEnemy(Team other){
return this != other;
}