aboutsummaryrefslogtreecommitdiffstats
path: root/code/sys
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-03-02 18:08:21 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2009-03-02 18:08:21 +0000
commitda762ca71cd10044f0f5ee157d55e2f65e406ba2 (patch)
tree10b687ec1c8aad99ddf4cbbe51f6c5f2797f8c3e /code/sys
parent93afc16a582ed1f2cf5936c55e80d26a606bbdfb (diff)
downloadioquake3-aero-da762ca71cd10044f0f5ee157d55e2f65e406ba2.tar.gz
ioquake3-aero-da762ca71cd10044f0f5ee157d55e2f65e406ba2.zip
initialize Sys_Milliseconds early (#3999)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1507 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/sys')
-rw-r--r--code/sys/sys_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/code/sys/sys_main.c b/code/sys/sys_main.c
index be9e2f0..805a0c6 100644
--- a/code/sys/sys_main.c
+++ b/code/sys/sys_main.c
@@ -534,6 +534,11 @@ int main( int argc, char **argv )
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 );