Minor tweaks

This commit is contained in:
Anuken
2022-02-18 15:04:48 -05:00
parent 396afb5144
commit f9c0065a99
4 changed files with 14 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ import static mindustry.Vars.*;
public class FogControl implements CustomChunk{
private static volatile int ww, wh;
private static final int buildLight = 1;
private static final int buildLight = 0;
private final Object sync = new Object();
/** indexed by [team] [packed array tile pos] */
@@ -42,7 +42,7 @@ public class FogControl implements CustomChunk{
if(state.rules.fog && read){
for(var build : Groups.build){
synchronized(events){
events.add(FogEvent.get(build.tile.x, build.tile.y, buildLight, build.team.id));
events.add(FogEvent.get(build.tile.x, build.tile.y, buildLight + build.block.size, build.team.id));
}
}