Skip to content

Commit

Permalink
Small fix in sv_user.cpp (rehlds#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
overl4y authored Aug 7, 2024
1 parent 2834fb8 commit 7073363
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit 7073363

Please sign in to comment.