X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=gate.h;h=c3f922967cba1a015584019bc7ce67c138669e3d;hb=b4c9550f206c476bb38b0bb2855d35e6b31bee83;hp=eb0f335782b0ff367c2d1685548a4263e24cf494;hpb=1030b1e134d422a3cbc1e06102053447da59ceba;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/gate.h b/gate.h index eb0f335..c3f9229 100644 --- a/gate.h +++ b/gate.h @@ -1,8 +1,7 @@ #ifndef GATE_H #define GATE_H -#define VG_3D -#include "vg/vg.h" +#include "common.h" #include "model.h" #include "render.h" #include "shaders/gate.h" @@ -234,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 )