Skip to content

Commit

Permalink
Fix occlusing counting (#4922)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhofhansl authored and Zeno- committed Dec 18, 2016
1 parent 6d4e7f2 commit e4f7ce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clientmap.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit e4f7ce1

Please sign in to comment.