mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-27 07:05:43 +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);
|
gEntityInterface.pfnPM_Move(pmove, TRUE);
|
||||||
|
|
||||||
// Determine whether movevars has changed or not
|
// 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_WriteMovevarsToClient(&host_client->netchan.message, pmove->movevars); // sync movevars for the client
|
||||||
|
|
||||||
sv_player->v.deadflag = pmove->deadflag;
|
sv_player->v.deadflag = pmove->deadflag;
|
||||||
|
Loading…
Reference in New Issue
Block a user