projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aefe807
)
Fix occlusion
author
Miguel Almeida
<migaxmoitax@gmail.com>
Sat, 31 Jan 2015 15:49:44 +0000
(15:49 +0000)
committer
Loic Blot
<loic.blot@unix-experience.fr>
Mon, 2 Mar 2015 11:09:02 +0000
(12:09 +0100)
src/clientmap.cpp
patch
|
blob
|
history
diff --git
a/src/clientmap.cpp
b/src/clientmap.cpp
index 4ceb7bc9037f1761d51c49d74c7150e6051f2be1..b9516fcbea85b2b60c80dbe4c5ec8e5d106a93b3 100644
(file)
--- 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;
}