mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-06 20:30:36 +08:00
engine: server: fix time out on change level
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user