Skip to content

Commit

Permalink
fix crash due fakeclient
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Dec 8, 2024
1 parent 18b173d commit e54adb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rehlds/engine/sv_user.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e54adb0

Please sign in to comment.