engine: server: fix time out on change level

This commit is contained in:
Alibek Omarov
2025-05-06 20:11:41 +03:00
parent 2106556dec
commit c8b8e19ed3

View File

@@ -889,7 +889,7 @@ void SV_SendClientMessages( void )
// now that we were able to send, reset timer to point to next possible send time.
// check here also because sv_max/minupdaterate could been changed in runtime
updaterate_time = bound( 1.0 / sv_maxupdaterate.value, cl->cl_updaterate, 1.0 / sv_minupdaterate.value );
cl->next_messagetime = host.realtime + sv.frametime + updaterate_time;
cl->next_messagetime = host.realtime + sv.frametime + updaterate_time;
ClearBits( cl->flags, FCL_SEND_NET_MESSAGE );
// NOTE: we should send frame even if server is not simulated to prevent overflow
@@ -958,8 +958,13 @@ void SV_InactivateClients( void )
}
if( cl->state > cs_connected )
{
cl->state = cs_connected;
// bump connect timeout
cl->connection_started = host.realtime;
}
COM_ClearCustomizationList( &cl->customdata, false );
memset( cl->physinfo, 0, MAX_PHYSINFO_STRING );