Skip to content

Commit

Permalink
Merge pull request #1314 from drzel/fix-freelook-in-demos
Browse files Browse the repository at this point in the history
Fix freelook in demos
  • Loading branch information
drzel authored Mar 20, 2024
2 parents 2b55abb + e06d9f0 commit 3b35deb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion csqc/pmove.qc
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,8 @@ DEFCVAR_FLOAT(cl_upspeed, 400);
void PM_InputFrame() {
float iz = input_movevalues.z;
input_movevalues.z = 0;
float 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 3b35deb

Please sign in to comment.