engine: server: added singleplayer check for userinfo update

This commit is contained in:
SNMetamorph 2023-11-10 16:32:30 +04:00 committed by Alibek Omarov
parent a87f399e68
commit 5216cccef4

View File

@ -1772,6 +1772,9 @@ static qboolean SV_ShouldUpdateUserinfo( sv_client_t *cl )
if( FBitSet( cl->flags, FCL_FAKECLIENT ))
return allow;
if( Host_IsLocalGame( ))
return allow;
// start from 1 second
if( !cl->userinfo_penalty )
cl->userinfo_penalty = sv_userinfo_penalty_time.value;