summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/clientmap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clientmap.cpp b/src/clientmap.cpp
index 8691cc0b2..db71d4b57 100644
--- a/src/clientmap.cpp
+++ b/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;
}