From ad7a7d6e8a31da9dda52b9a67f23110b546b31aa Mon Sep 17 00:00:00 2001 From: WPMGPRoSToTeMa Date: Tue, 2 Feb 2016 05:05:37 +0300 Subject: [PATCH] Added drop client if it is not answered on consistency request --- rehlds/engine/sv_main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rehlds/engine/sv_main.cpp b/rehlds/engine/sv_main.cpp index 0baa695..b50acff 100644 --- a/rehlds/engine/sv_main.cpp +++ b/rehlds/engine/sv_main.cpp @@ -1684,6 +1684,14 @@ void SV_Spawn_f(void) if (g_pcls.demoplayback || Q_atoi(Cmd_Argv(1)) == g_psvs.spawncount) { +#ifdef REHLDS_FIXES + if (host_client->has_force_unmodified) + { + SV_DropClient(host_client, false, "You didn't send consistency response"); + return; + } +#endif // REHLDS_FIXES + SZ_Write(&msg, g_psv.signon.data, g_psv.signon.cursize); SV_WriteSpawn(&msg);