diff --git a/code/qcommon/common.c b/code/qcommon/common.c index 46ad77bc..7cdfa856 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -2629,12 +2629,10 @@ void Com_Init( char *commandLine ) { Sys_Init(); - // Pick a port value that should be nice and random. - // As machines get faster Com_Milliseconds can't be used - // anymore as it results in a smaller and smaller range of - // qport values. + // Pick a random port value Com_RandomBytes( (byte*)&qport, sizeof(int) ); Netchan_Init( qport & 0xffff ); + VM_Init(); SV_Init(); diff --git a/code/sys/sys_main.c b/code/sys/sys_main.c index 805a0c60..f2a05e61 100644 --- a/code/sys/sys_main.c +++ b/code/sys/sys_main.c @@ -534,10 +534,8 @@ 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(); + // Set the initial time base + Sys_Milliseconds( ); Sys_ParseArgs( argc, argv ); Sys_SetBinaryPath( Sys_Dirname( argv[ 0 ] ) );