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:
parent
18b173d5c6
commit
e54adb089c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user