refactor model things
[carveJwlIkooP6JGAAIwe30JlM.git] / player.h
index 5a21afe662a2248252ecc776ecb7f5820e5ed64b..e119ffcffaac33ee553f5e3f99076324f8bf6dbf 100644 (file)
--- a/player.h
+++ b/player.h
@@ -302,7 +302,7 @@ VG_STATIC void player_update_pre(void)
    {
       double delta = world.time - world.last_use;
 
-      if( delta <= RESET_MAX_TIME )
+      if( (delta <= RESET_MAX_TIME) && (world.last_use != 0.0) )
       {
          player.rewinding = 1;
          player.rewind_sound_wait = 1;
@@ -472,17 +472,6 @@ VG_STATIC void player_update_post(void)
             budget -= advt;
          }
 
-#if 0
-         if( player.dist_accum >= 5.0f )
-         {
-            audio_lock();
-            audio_player_playclip( &audio_rewind_player, &audio_rewind[4] );
-            audio_unlock();
-
-            player.dist_accum -= 5.0f;
-         }
-#endif
-
          player.rewind_time = vg_maxf( 0.0f, player.rewind_time );
 
          float current_time = vg.time - player.diag_rewind_start,