mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Fix occlusion
This commit is contained in:
		
				
					committed by
					
						
						Loic Blot
					
				
			
			
				
	
			
			
			
						parent
						
							aefe80769b
						
					
				
				
					commit
					056e8f7839
				
			@@ -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;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user