Skip to content

Commit

Permalink
Merge branch 'fix-freelook-in-demos' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
drzel committed Mar 18, 2024
2 parents aae3988 + fce83e4 commit d409114
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion csqc/pmove.qc
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,13 @@ 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;
if (isdemo) {
max_speed = SPEC_MAXSPEED;
} else {
max_speed = pstate_pred.csqc_maxspeed;
}

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

0 comments on commit d409114

Please sign in to comment.