From 1072b25ce8313048a1d288f1141ed13b80390460 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Mon, 2 Mar 2009 18:08:21 +0000 Subject: [PATCH] initialize Sys_Milliseconds early (#3999) --- code/sys/sys_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/sys/sys_main.c b/code/sys/sys_main.c index be9e2f0b..805a0c60 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 );