From: lhofhansl Date: Sun, 18 Dec 2016 12:25:42 +0000 (-0800) Subject: Fix occlusing counting (#4922) X-Git-Tag: 0.4.15~20 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e4f7ce1985bda1c37b62f24d028828c5d3851ca2;p=oweals%2Fminetest.git Fix occlusing counting (#4922) --- 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; }