From 7073363c885c8f0c6e9967c09f41fcd733306ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=AF=E5=AE=9A=E9=BE=99?= <52111952+overl4y@users.noreply.github.com> Date: Tue, 6 Aug 2024 20:24:29 -0400 Subject: [PATCH] Small fix in sv_user.cpp (#1042) --- rehlds/engine/sv_user.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rehlds/engine/sv_user.cpp b/rehlds/engine/sv_user.cpp index 34ec6517..584ca4fd 100644 --- a/rehlds/engine/sv_user.cpp +++ b/rehlds/engine/sv_user.cpp @@ -884,7 +884,11 @@ void SV_RunCmd(usercmd_t *ucmd, int random_seed) pmove->spectator = 0; pmove->waterjumptime = sv_player->v.teleport_time; +#ifdef REHLDS_FIXES + Q_memcpy(&pmove->cmd, ucmd, sizeof(pmove->cmd)); +#else Q_memcpy(&pmove->cmd, &cmd, sizeof(pmove->cmd)); +#endif pmove->dead = sv_player->v.health <= 0.0; pmove->movetype = sv_player->v.movetype;