Skip to content

Commit

Permalink
Merge pull request #1319 from newbytf/dev-cur
Browse files Browse the repository at this point in the history
pmove: fix maxspeed
  • Loading branch information
newbytf authored Mar 18, 2024
2 parents 1e77ee6 + bf74d46 commit d71f6f2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions csqc/pmove.qc
Original file line number Diff line number Diff line change
Expand Up @@ -872,12 +872,7 @@ void PM_InputFrame() {
float iz = input_movevalues.z;
input_movevalues.z = 0;

float max_speed;
if (isdemo) {
max_speed = SPEC_MAXSPEED;
} else {
max_speed = pstate_pred.csqc_maxspeed;
}
float max_speed = isdemo() ? SPEC_MAXSPEED : pstate_pred.csqc_maxspeed;

#if 0 // Quick fix
// cl_smartjump replacement
Expand Down

0 comments on commit d71f6f2

Please sign in to comment.