Skip to content

Commit

Permalink
[ChunkBuilder] Fixed cactus face optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Mar 15, 2020
1 parent c5f83f9 commit aee82ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/source/world/ChunkBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ inline void ChunkBuilder::addFace(s8f x, s8f y, s8f z, s8f f, const ClientChunk
&& ((block.drawType() == BlockDrawType::Solid && surroundingBlock->drawType() == BlockDrawType::Solid && surroundingBlock->isOpaque())
|| (block.id() == surroundingBlock->id() && (block.drawType() == BlockDrawType::Liquid || block.drawType() == BlockDrawType::Glass))
|| (block.drawType() == BlockDrawType::Liquid && surroundingBlock->drawType() == BlockDrawType::Solid)
|| (block.drawType() == BlockDrawType::Cactus && surroundingBlock->id() == block.id())))
|| (block.drawType() == BlockDrawType::Cactus && surroundingBlock->id() == block.id() && f > 3)))
return;

const gk::FloatBox &boundingBox = block.boundingBox();
Expand Down

0 comments on commit aee82ca

Please sign in to comment.