make glider look nice
[carveJwlIkooP6JGAAIwe30JlM.git] / testing.c
index 0f5b9bc320b11dfce16bed7aebbf66ad45baa848..103f62cafeb106fb397ef7475763cc9cd8c0cbd5 100644 (file)
--- a/testing.c
+++ b/testing.c
@@ -14,6 +14,9 @@ static baller = {
 };
 
 static void testing_update(void){
+   if( !vg_console.cheats )
+      return;
+
    if( vg_getkey( SDLK_9 ) ){
       v3_add( localplayer.rb.co, (v3f){0,1,0}, baller.rb.co );
       v3_zero( baller.rb.w );
@@ -25,6 +28,7 @@ static void testing_update(void){
    if( vg_getkey( SDLK_8 ) ){
       localplayer.have_glider = 1;
       localplayer.glider_orphan = 0;
+      player_glide.t = -1.0f;
    }
 
    vg_line_boxf_transformed( baller.rb.to_world, baller.box, VG__RED );