X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_interface.h;h=a304fbb5b752e56865d7b52eb51a75b3a48e0cc8;hb=791f807111a1f740f745c67db642aa7a8bee56e8;hp=38b98b776ca4647fd72b4eaa624a412f258f37f8;hpb=9cdcfea2cb2eabd27101ab113eac7070d0fa78d3;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_interface.h b/player_interface.h index 38b98b7..a304fbb 100644 --- a/player_interface.h +++ b/player_interface.h @@ -1,3 +1,4 @@ +#if 0 #ifndef PLAYER_INTERFACE_H #define PLAYER_INTERFACE_H @@ -345,8 +346,8 @@ VG_STATIC void player_pre_render( player_interface *player ) { /* construct plane equation for reciever gate */ v4f plane; - v3_copy( player->gate_waiting->recv_to_world[2], plane ); - plane[3] = v3_dot( plane, player->gate_waiting->recv_to_world[3] ); + q_mulv( player->gate_waiting->q[1], (v3f){0.0f,0.0f,1.0f}, plane ); + plane[3] = v3_dot( plane, player->gate_waiting->co[1] ); /* check camera polarity */ if( v3_dot( player->cam.pos, plane ) < plane[3] ) @@ -494,3 +495,4 @@ void player_look( player_interface *player, v3f angles ) } #endif /* PLAYER_INTERFACE_H */ +#endif