now we're doing a bunch of them
[carveJwlIkooP6JGAAIwe30JlM.git] / player_interface.h
index 38b98b776ca4647fd72b4eaa624a412f258f37f8..a304fbb5b752e56865d7b52eb51a75b3a48e0cc8 100644 (file)
@@ -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