r1507 - trunk/code/sys

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Mar 2 13:08:21 EST 2009


Author: ludwig
Date: 2009-03-02 13:08:21 -0500 (Mon, 02 Mar 2009)
New Revision: 1507

Modified:
   trunk/code/sys/sys_main.c
Log:
initialize Sys_Milliseconds early (#3999)

Modified: trunk/code/sys/sys_main.c
===================================================================
--- trunk/code/sys/sys_main.c	2009-03-02 18:08:13 UTC (rev 1506)
+++ trunk/code/sys/sys_main.c	2009-03-02 18:08:21 UTC (rev 1507)
@@ -534,6 +534,11 @@
 
 	Sys_PlatformInit( );
 
+	// Set the initial time base.
+	// If not called here com_frameTime will always be zero.
+	// com_frameTime should be pseudo random.
+	Sys_Milliseconds();
+
 	Sys_ParseArgs( argc, argv );
 	Sys_SetBinaryPath( Sys_Dirname( argv[ 0 ] ) );
 	Sys_SetDefaultInstallPath( DEFAULT_BASEDIR );




More information about the quake3-commits mailing list