Skip to content

Commit

Permalink
Exclude vertical speed from cl_ups
Browse files Browse the repository at this point in the history
  • Loading branch information
kugelrund committed Jul 3, 2020
1 parent 4ec8d6e commit 1991850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2232,7 +2232,7 @@ static size_t CL_Ups_m(char *buffer, size_t size)
} else {
VectorScale(cl.frame.ps.pmove.velocity, 0.125f, vel);
}

vel[2] = 0.0f; // don't care about vertical speed in speedometer
return Q_scnprintf(buffer, size, "%.f", VectorLength(vel));
}

Expand Down

0 comments on commit 1991850

Please sign in to comment.