diff --git a/rehlds/engine/host.cpp b/rehlds/engine/host.cpp index 4d0ea4c..a010094 100644 --- a/rehlds/engine/host.cpp +++ b/rehlds/engine/host.cpp @@ -532,7 +532,7 @@ void SV_DropClient_internal(client_t *cl, qboolean crash, const char *string) Q_memset(cl->physinfo, 0, sizeof(cl->physinfo)); #ifdef REHLDS_FIXES - g_GameClients[host_client - g_psvs.clients]->SetSpawnedOnce(false); + g_GameClients[cl - g_psvs.clients]->SetSpawnedOnce(false); #endif // REHLDS_FIXES SV_FullClientUpdate(cl, &g_psv.reliable_datagram); diff --git a/rehlds/engine/sv_user.cpp b/rehlds/engine/sv_user.cpp index 38cd04b..2273587 100644 --- a/rehlds/engine/sv_user.cpp +++ b/rehlds/engine/sv_user.cpp @@ -1553,12 +1553,9 @@ void SV_ParseMove(client_t *pSenderClient) host_client->packet_loss = packet_loss; if (!g_psv.paused && (g_psvs.maxclients > 1 || !key_dest) && !(sv_player->v.flags & FL_FROZEN)) { -#ifndef REHLDS_FIXES - // dup and more correct in SV_RunCmd sv_player->v.v_angle[0] = cmds[0].viewangles[0]; sv_player->v.v_angle[1] = cmds[0].viewangles[1]; sv_player->v.v_angle[2] = cmds[0].viewangles[2]; -#endif } else { diff --git a/rehlds/rehlds/rehlds_security.cpp b/rehlds/rehlds/rehlds_security.cpp index 26362df..ad852dd 100644 --- a/rehlds/rehlds/rehlds_security.cpp +++ b/rehlds/rehlds/rehlds_security.cpp @@ -1,7 +1,7 @@ #include "precompiled.h" -cvar_t sv_rehlds_movecmdrate_max_avg = { "sv_rehlds_movecmdrate_max_avg", "300", 0, 300.0f, NULL }; -cvar_t sv_rehlds_movecmdrate_max_burst = { "sv_rehlds_movecmdrate_max_burst", "1500", 0, 1500.0f, NULL }; +cvar_t sv_rehlds_movecmdrate_max_avg = { "sv_rehlds_movecmdrate_max_avg", "400", 0, 400.0f, NULL }; +cvar_t sv_rehlds_movecmdrate_max_burst = { "sv_rehlds_movecmdrate_max_burst", "2500", 0, 2500.0f, NULL }; cvar_t sv_rehlds_stringcmdrate_max_avg = {"sv_rehlds_stringcmdrate_max_avg", "80", 0, 80.0f, NULL}; cvar_t sv_rehlds_stringcmdrate_max_burst = {"sv_rehlds_stringcmdrate_max_burst", "400", 0, 400.0f, NULL};