mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-20 09:17:19 +07:00
Misc bugfixes
This commit is contained in:
parent
72b43053cd
commit
d566440e77
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user