shithub: choc

Download patch

ref: 5f4628dcc6400e64f62ad7c3afaac2046f8b1e9a
parent: bc3ed56fcb57da03b3bba4d7a4591535e0e3d44a
author: Simon Howard <[email protected]>
date: Sun Jul 29 22:03:23 EDT 2007

Set timedemo start time when demo playback begins, not when the level
begins. Using the level start time causes problems when timing
multi-level demos.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 942

--- a/src/g_game.c
+++ b/src/g_game.c
@@ -673,7 +673,6 @@
 		 
     P_SetupLevel (gameepisode, gamemap, 0, gameskill);    
     displayplayer = consoleplayer;		// view the guy you are playing    
-    starttime = I_GetTime (); 
     gameaction = ga_nothing; 
     Z_CheckHeap ();
     
@@ -1974,6 +1973,7 @@
     precache = false;
     G_InitNew (skill, episode, map); 
     precache = true; 
+    starttime = I_GetTime (); 
 
     usergame = false; 
     demoplayback = true;