commit 8a5d55686dac295602a1115b29eb1f089ba317dd parent 23c04c9900524327b838da69a89f7d5e8c0b58c0 Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Aug 27 11:05:27 +0100 Oops! Diffstat:
terrain_manager.cc | | | 4 | ++-- |
diff --git a/terrain_manager.cc b/terrain_manager.cc @@ -424,7 +424,7 @@ bool segment_vs_terrain( const TerrainManager * tm, v3 seg_origin, v3 seg_end, f float segment_length = length( seg_end - seg_origin ); Ray3 ray( seg_origin, normalize( seg_end - seg_origin ) ); - *t = FLT_MAX; + *t = 1.0f; // TODO: bresenhams vs top level for( u16 vy = 0; vy < VIEW_SIZE; vy++ ) { @@ -452,5 +452,5 @@ bool segment_vs_terrain( const TerrainManager * tm, v3 seg_origin, v3 seg_end, f } } - return *t < FLT_MAX; + return *t < 1.0f; }