Fix hanging cutscenes on fast machines (backport from OpenJK)

This commit is contained in:
Petr Bartos 2023-12-13 17:45:37 +01:00 committed by Simon
parent 96df03025f
commit 437d584421

View file

@ -311,7 +311,8 @@ void SV_SpawnServer( const char *server, ForceReload_e eForceReload, qboolean bA
SV_InitGameProgs();
// run a few frames to allow everything to settle
for ( i = 0 ;i < 3 ; i++ ) {
cvar_t *frameDelay = Cvar_Get("s_spawnFrameDelay", "4", CVAR_TEMP);
for ( i = 0 ;i < frameDelay->integer ; i++ ) {
ge->RunFrame( sv.time );
sv.time += 100;
re.G2API_SetTime(sv.time,G2T_SV_TIME);