mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Fix occlusing counting (#4922)
This commit is contained in:
@@ -132,9 +132,9 @@ static bool isOccluded(Map *map, v3s16 p0, v3s16 p1, float step, float stepfac,
|
|||||||
else
|
else
|
||||||
is_transparent = (f.solidness != 2);
|
is_transparent = (f.solidness != 2);
|
||||||
if(!is_transparent){
|
if(!is_transparent){
|
||||||
if(count == needed_count)
|
|
||||||
return true;
|
|
||||||
count++;
|
count++;
|
||||||
|
if(count >= needed_count)
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
step *= stepfac;
|
step *= stepfac;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user