performance measurements
[carveJwlIkooP6JGAAIwe30JlM.git] / player_skate.c
index 215c1c7f678091d8f97184aa98ddbf10ccd424c0..1ad7231609e2f0dcc2b5abd1a2a94d9e03ce63b8 100644 (file)
@@ -225,7 +225,7 @@ too_many_samples:
          v3_copy( sj->normal3, n1 );
          v3_cross( n0, n1, dir );
 
-         if( v3_length2( dir ) <= 0.001f )
+         if( v3_length2( dir ) <= 0.000001f )
             continue;
 
          v3_normalize( dir );
@@ -2572,7 +2572,7 @@ begin_collision:;
 
    if( (state->activity_prev < k_skate_activity_grind_any) && 
        (state->activity >= k_skate_activity_grind_any) ){
-      state->velocity_limit = v3_length( localplayer.rb.v );
+      state->velocity_limit = v3_length( localplayer.rb.v )*1.0f;
       state->grind_y_start = localplayer.rb.co[1];
    }