X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=gate.h;h=c3f922967cba1a015584019bc7ce67c138669e3d;hb=46643f969b12c2144a5f15ac5509610f18b467e4;hp=270f9d74b36c9993debb141001e97477296c44b3;hpb=3ee65e6e24bfc39db7c7dd8c1f4cec3d5c42d0f8;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/gate.h b/gate.h index 270f9d7..c3f9229 100644 --- a/gate.h +++ b/gate.h @@ -233,7 +233,7 @@ static int gate_intersect( teleport_gate *gate, v3f pos, v3f last ) float d = v3_dot(surface, v0); - if( fabsf(d) > 0.00001f ) + if( d > 0.00001f ) { float t = v3_dot(delta, surface) / d; if( t >= 0.0f && t <= l )