diff options
author | Miguel Almeida <migaxmoitax@gmail.com> | 2015-01-31 15:49:44 +0000 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-03-02 12:09:02 +0100 |
commit | 056e8f7839d72dfc2e8aa0a68c5d19d7cc30a282 (patch) | |
tree | 664859d68811ee1659fce7618481bf3345c83822 /src | |
parent | aefe80769bc515e0ddbfc734d41de396aca1259c (diff) | |
download | minetest-056e8f7839d72dfc2e8aa0a68c5d19d7cc30a282.tar.gz minetest-056e8f7839d72dfc2e8aa0a68c5d19d7cc30a282.tar.bz2 minetest-056e8f7839d72dfc2e8aa0a68c5d19d7cc30a282.zip |
Fix occlusion
Diffstat (limited to 'src')
-rw-r--r-- | src/clientmap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clientmap.cpp b/src/clientmap.cpp index 4ceb7bc90..b9516fcbe 100644 --- a/src/clientmap.cpp +++ b/src/clientmap.cpp @@ -161,9 +161,9 @@ static bool isOccluded(Map *map, v3s16 p0, v3s16 p1, float step, float stepfac, else is_transparent = (f.solidness != 2); if(!is_transparent){ - count++; - if(count >= needed_count) + if(count == needed_count) return true; + count++; } step *= stepfac; } |