2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 07:05:43 +03:00

Small fix in sv_user.cpp (#1042)

This commit is contained in:
肯定龙 2024-08-06 20:24:29 -04:00 committed by GitHub
parent 2834fb8494
commit 7073363c88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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