Skip to content

Commit 7184b40

Browse files
committed
Use predictedPlayerState on ground speedometer
1 parent 0f834d8 commit 7184b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codemp/cgame/cg_draw.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11268,7 +11268,7 @@ static void CG_Speedometer(void)
1126811268
char speedStr4[32] = {0};
1126911269
vec4_t colorGroundSpeed = {1, 1, 1, 1};
1127011270

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

0 commit comments

Comments
 (0)