2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-26 14:45:44 +03:00

fix crash due fakeclient

This commit is contained in:
s1lentq 2024-12-08 08:57:51 +07:00
parent 18b173d5c6
commit e54adb089c

View File

@ -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;