
void idle(void){ /*do this when nothing else is happening*/
   static int doit = 0;
   doit = ++doit %  MANY;
   if(flying && trailmake && (doit==2))maketrail();
   if(trailwryte){printf("trail is "); writetrail(); }
   if(morph && (doit==2)) autotymer(0);  /* advance autotymer */ 
   glutPostRedisplay();  /*redraw the window*/
   chaptrack(BUT,XX,YY,SHIF);
   audiofunc();  
}

