mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-15 10:17:39 +07:00
Foundation for building AI
This commit is contained in:
@ -120,7 +120,7 @@ public class BlockRenderer implements Disposable{
|
||||
}
|
||||
|
||||
if(brokenFade > 0.001f){
|
||||
for(BrokenBlock block : state.teams.get(player.team()).brokenBlocks){
|
||||
for(BrokenBlock block : state.teams.get(player.team()).blocks){
|
||||
Block b = content.block(block.block);
|
||||
if(!camera.bounds(Tmp.r1).grow(tilesize * 2f).overlaps(Tmp.r2.setSize(b.size * tilesize).setCenter(block.x * tilesize + b.offset(), block.y * tilesize + b.offset()))) continue;
|
||||
|
||||
|
Reference in New Issue
Block a user