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] );
+ f32 pol = v3_dot( player->cam.pos, plane ) - plane[3];
+
/* check camera polarity */
- if( v3_dot( player->cam.pos, plane ) < plane[3] ) {
+ if( (pol < 0.0f) || (pol > 5.0f) ) {
vg_success( "Plane cleared\n" );
player_apply_transport_to_cam( player->gate_waiting->transport );
player->gate_waiting = NULL;