Skip to content

Commit

Permalink
engine: server: cleanup penalties and warns for new players
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Mar 1, 2025
1 parent ec23860 commit aa82467
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions engine/server/sv_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,9 @@ static void SV_ConnectClient( netadr_t from )

// parse some info from the info strings (this can override cl_updaterate)
Q_strncpy( newcl->userinfo, userinfo, sizeof( newcl->userinfo ));

newcl->ignorecmdtime_warns = 0;
newcl->ignorecmdtime_warned = false;
newcl->fullupdate_next_calltime = 0;
newcl->userinfo_next_changetime = 0;
newcl->userinfo_penalty = 0;
Expand Down Expand Up @@ -525,6 +528,14 @@ edict_t *GAME_EXPORT SV_FakeConnect( const char *netname )

// parse some info from the info strings
Q_strncpy( cl->userinfo, userinfo, sizeof( cl->userinfo ));

newcl->ignorecmdtime_warns = 0;
newcl->ignorecmdtime_warned = false;
newcl->fullupdate_next_calltime = 0;
newcl->userinfo_next_changetime = 0;
newcl->userinfo_penalty = 0;
newcl->userinfo_change_attempts = 0;

SV_UserinfoChanged( cl );
SetBits( cl->flags, FCL_RESEND_USERINFO );
cl->next_sendinfotime = 0.0;
Expand Down

0 comments on commit aa82467

Please # to comment.