components/prboom/g_game.c
/* G_CheckDemoStatus
 *
 * Called after a death or level completion to allow demos to be cleaned up
 * Returns true if a new demo loop action will take place
 */
G_CheckDemoStatus
Called after a death or level completion to allow demos to be cleaned up
Returns true if a new demo loop action will take place
G_CheckDemoStatus Called after a death or level completion to allow demos to be cleaned up Returns true if a new demo loop action will take place
boolean G_CheckDemoStatus (void)
{
  P_ChecksumFinal();
  if (demorecording)
    {
      demorecording = false;
      fputc(DEMOMARKER, demofp);
      I_Error("G_CheckDemoStatus: Demo recorded");
      return false;  
    }
  if (timingdemo)
    {
      int endtime = I_GetTime_RealTime ();
       -- added fps information and made it work for longer demos:
      unsigned realtics = endtime-starttime;
      I_Error ("Timed %u gametics in %u realtics = %-.1f frames per second",
               (unsigned) gametic,realtics,
               (unsigned) gametic * (double) TICRATE / realtics);
    }
  if (demoplayback)
    {
//        exit(0);  
      if (demolumpnum != -1) {
  W_UnlockLumpNum(demolumpnum);
  demolumpnum = -1;
      }
      G_ReloadDefaults();     3/1/98
      netgame = false;        3/29/98
      deathmatch = false;
      D_AdvanceDemo ();
      return true;
    }
  return false;
}
boolean G_CheckDemoStatus ( void ) { P_ChecksumFinal ( ) ; if ( demorecording ) { demorecording = false ; fputc ( DEMOMARKER , demofp ) ; I_Error ( " " ) ; return false ; } if ( timingdemo ) { int endtime = I_GetTime_RealTime ( ) ; unsigned realtics = endtime - starttime ; I_Error ( " " , ( unsigned ) gametic , realtics , ( unsigned ) gametic * ( double ) TICRATE / realtics ) ; } if ( demoplayback ) { if ( demolumpnum != -1 ) { W_UnlockLumpNum ( demolumpnum ) ; demolumpnum = -1 ; } G_ReloadDefaults ( ) ; netgame = false ; deathmatch = false ; D_AdvanceDemo ( ) ; return true ; } return false ; }
G_CheckDemoStatus
 Called after a death or level completion to allow demos to be cleaned up
 Returns true if a new demo loop action will take place
G_CheckDemoStatus Called after a death or level completion to allow demos to be cleaned up Returns true if a new demo loop action will take place
// killough // killough -- added fps information and made it work for longer demos: //      if (singledemo) //        exit(0);  // killough // cph - unlock the demo lump // killough 3/1/98 // killough 3/29/98