Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fix in sv_user.cpp #1042

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions rehlds/engine/sv_user.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading