Skip to content

Commit

Permalink
Use predictedPlayerState on ground speedometer
Browse files Browse the repository at this point in the history
  • Loading branch information
Bucky21659 committed Nov 12, 2018
1 parent 0f834d8 commit 7184b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codemp/cgame/cg_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -11268,7 +11268,7 @@ static void CG_Speedometer(void)
char speedStr4[32] = {0};
vec4_t colorGroundSpeed = {1, 1, 1, 1};

if (pm && (pm->ps->groundEntityNum != ENTITYNUM_NONE || pm->ps->velocity[2] < 0)) { //On ground or Moving down
if (cg.predictedPlayerState.groundEntityNum != ENTITYNUM_NONE || cg.predictedPlayerState.velocity[2] < 0) { //On ground or Moving down
cg.firstTimeInAir = qfalse;
}
else if (!cg.firstTimeInAir) { //Moving up for first time
Expand Down

0 comments on commit 7184b40

Please sign in to comment.