medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c3bf18ee8fd6cff3215c42c94725916cc855ca42
parent cf0dc3bf3035dec447012eb4fde8cbf629002eaa
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Mon Nov 14 23:34:27 +0200

Warnings

Diffstat:
heightmap.cc | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/heightmap.cc b/heightmap.cc @@ -264,7 +264,6 @@ static void heightmap_build_quadtree_node( HeightmapQuadTree * qt, size_t node_i u8 lo = 255; u8 hi = 0; for( size_t i = 0; i < 4; i++ ) { - AABBu32 asdf = aabb.quadrant( i ); heightmap_build_quadtree_node( qt, child_idx( node_idx, i ), aabb.quadrant( i ) ); lo = min( lo, qt->nodes[ child_idx( node_idx, i ) ].min_z ); hi = max( hi, qt->nodes[ child_idx( node_idx, i ) ].max_z ); @@ -294,7 +293,7 @@ HeightmapQuadTree heightmap_build_quadtree( const Heightmap * hm ) { static bool ray_vs_quadtree_node( const HeightmapQuadTree * qt, size_t node_idx, AABBu32 aabb, v3 origin, v3 direction, float * t ) { if( aabb.maxs.x - aabb.mins.x == 1 || aabb.maxs.y - aabb.mins.y == 1 ) { - float min_t; + float min_t = 0; bool hit = false; u32 x = aabb.mins.x;