From d566440e773da07fd568b94c1c918e48f9a180da Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 10 Mar 2022 12:58:00 -0500 Subject: [PATCH] Misc bugfixes --- core/src/mindustry/ai/types/CommandAI.java | 2 +- core/src/mindustry/graphics/FogRenderer.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/ai/types/CommandAI.java b/core/src/mindustry/ai/types/CommandAI.java index e544956988..630e52f86f 100644 --- a/core/src/mindustry/ai/types/CommandAI.java +++ b/core/src/mindustry/ai/types/CommandAI.java @@ -105,7 +105,7 @@ public class CommandAI extends AIController{ } //others have arrived at destination, so this one will too - if(count >= Math.max(2, local.size / 3)){ + if(count >= Math.max(3, local.size / 2)){ targetPos = null; } } diff --git a/core/src/mindustry/graphics/FogRenderer.java b/core/src/mindustry/graphics/FogRenderer.java index 46f62d6afa..3cd6eefeaa 100644 --- a/core/src/mindustry/graphics/FogRenderer.java +++ b/core/src/mindustry/graphics/FogRenderer.java @@ -113,7 +113,8 @@ public final class FogRenderer{ Draw.shader(Shaders.fog); Draw.color(state.rules.dynamicColor); Draw.fbo(dynamicFog.getTexture(), world.width(), world.height(), tilesize); - if(state.rules.staticFog){ + //TODO ai check? + if(state.rules.staticFog && !player.team().isAI()){ //TODO why does this require a half-tile offset while dynamic does not Draw.color(state.rules.staticColor); Draw.fbo(staticFog.getTexture(), world.width(), world.height(), tilesize, tilesize/2f);