Skip to content

Commit

Permalink
Add overlays to render updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MEEPofFaith committed Apr 17, 2023
1 parent d043c75 commit 2cd1c52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/mindustry/graphics/BlockRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ public BlockRenderer(){
updateFloors.add(new UpdateRenderState(tile, tile.floor()));
}

if(tile.overlay().updateRender(tile)){
updateFloors.add(new UpdateRenderState(tile, tile.overlay()));
}

if(tile.build != null && (tile.team() == player.team() || !state.rules.fog || (tile.build.visibleFlags & (1L << player.team().id)) != 0)){
tile.build.wasVisible = true;
}
Expand Down

0 comments on commit 2cd1c52

Please sign in to comment.