Skip to content

Commit

Permalink
SV_ExecuteClientMessage: Don't handle packets when client has already…
Browse files Browse the repository at this point in the history
… dropped
  • Loading branch information
s1lentq committed Apr 22, 2021
1 parent ebefe19 commit 9a171db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rehlds/engine/sv_user.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1803,6 +1803,12 @@ void SV_ExecuteClientMessage(client_t *cl)
return;

g_RehldsHookchains.m_HandleNetCommand.callChain(SV_HandleClientMessage_api, apiClient, c);

#ifdef REHLDS_FIXES
// FIXED: Don't handle remaining packets if got dropclient above
if (!cl->connected && !cl->active && !cl->spawned)
break;
#endif // REHLDS_FIXES
}
}

Expand Down

0 comments on commit 9a171db

Please sign in to comment.