Skip to content

Commit

Permalink
[ClientWorld] Small chunk visibility fix. Fixed #140.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Jul 18, 2020
1 parent 73b3fbf commit ea00d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/client/world/ClientWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ void ClientWorld::draw(gk::RenderTarget &target, gk::RenderStates states) const
// Our screen coordinates are +X right, +Y up, and for a right-handed
// coordinate system, depth must be negative Z, so anything with a
// positive Z is behind the camera.
if (center.z > CHUNK_MAXSIZE / 2) {
if (center.z > CHUNK_MAXSIZE) {
continue;
}

Expand Down

0 comments on commit ea00d12

Please sign in to comment.