diff --git a/src/g_game.c b/src/g_game.c index e0a2307b..265a54e6 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -3783,6 +3783,16 @@ boolean G_CheckDemoStatus(void) ticcmd_t* cmd = last_cmd; last_cmd = NULL; + if (timingdemo) + { + int endtime = I_GetTime_RealTime(); + // killough -- 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) { if (demorecording) @@ -3848,16 +3858,6 @@ boolean G_CheckDemoStatus(void) return false; // killough } - if (timingdemo) - { - int endtime = I_GetTime_RealTime(); - // killough -- 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); - } - return false; }