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
+7 -4
View File
@@ -94,11 +94,14 @@ public class Pathfinder implements Runnable{
tiles[i] = packTile(tile, 0);
}
preloadPath(getField(state.rules.waveTeam, costGround, fieldCore));
if(state.rules.waveTeam.needsFlowField()){
preloadPath(getField(state.rules.waveTeam, costGround, fieldCore));
//preload water on naval maps
if(spawner.getSpawns().contains(t -> t.floor().isLiquid)){
preloadPath(getField(state.rules.waveTeam, costNaval, fieldCore));
}
//preload water on naval maps
if(spawner.getSpawns().contains(t -> t.floor().isLiquid)){
preloadPath(getField(state.rules.waveTeam, costNaval, fieldCore));
}
start();