Permalink
Browse files

Fix occlusing counting (#4922)

  • Loading branch information...
lhofhansl authored and Zeno- committed Dec 18, 2016
1 parent 6d4e7f2 commit e4f7ce1985bda1c37b62f24d028828c5d3851ca2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/clientmap.cpp
@@ -132,9 +132,9 @@ static bool isOccluded(Map *map, v3s16 p0, v3s16 p1, float step, float stepfac,
else
is_transparent = (f.solidness != 2);
if(!is_transparent){
if(count == needed_count)
return true;
count++;
if(count >= needed_count)
return true;
}
step *= stepfac;
}

0 comments on commit e4f7ce1

Please sign in to comment.