From e54adb089c816425bac43c7eaf6fc5b898401fb4 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Sun, 8 Dec 2024 08:57:51 +0700 Subject: [PATCH] fix crash due fakeclient --- rehlds/engine/sv_user.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rehlds/engine/sv_user.cpp b/rehlds/engine/sv_user.cpp index 26bbe13..e6bd874 100644 --- a/rehlds/engine/sv_user.cpp +++ b/rehlds/engine/sv_user.cpp @@ -939,7 +939,7 @@ void SV_RunCmd(usercmd_t *ucmd, int random_seed) gEntityInterface.pfnPM_Move(pmove, TRUE); // Determine whether movevars has changed or not - if (Q_memcmp(&movevars, pmove->movevars, sizeof(movevars)) != 0) + if (!host_client->fakeclient && Q_memcmp(&movevars, pmove->movevars, sizeof(movevars)) != 0) SV_WriteMovevarsToClient(&host_client->netchan.message, pmove->movevars); // sync movevars for the client sv_player->v.deadflag = pmove->deadflag;