couple fix
[vg.git] / src / vg / vg.h
index f3456f3199887c8e76c4f0222cefe55732978292..71f4b2a3d853c8c6605559c5a39a18d0486eae2b 100644 (file)
@@ -549,9 +549,11 @@ VG_STATIC void vg_enter( int argc, char *argv[], const char *window_name )
       vg.accumulator += vg.time_delta;
 
       vg.fixed_iterations = 0;
+      vg_lines.allow_input = 1;
       while( vg.accumulator >= (VG_TIMESTEP_FIXED-0.00125) )
       {
          vg_update_fixed( loaded );
+         vg_lines.allow_input = 0;
 
          vg.accumulator -= VG_TIMESTEP_FIXED;
          vg.accumulator  = VG_MAX( 0.0, vg.accumulator );
@@ -562,6 +564,7 @@ VG_STATIC void vg_enter( int argc, char *argv[], const char *window_name )
             break;
          }
       }
+      vg_lines.allow_input = 1;
 
       /* 
        * Rendering