Skip to content

Commit

Permalink
Fix formatting and magick numbers from @nillerusr 's commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mittorn authored Nov 19, 2018
1 parent b9ef4c7 commit ee49dff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engine/client/cl_scrn.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ void SCR_DrawPos( void )
speed = VectorLength( cl.frame.client.velocity );

if( cl_showpos->integer >= 2 )
Q_snprintf(vel, 64, "%.2f %.2f %2.2f", cl.frame.client.velocity[0],cl.frame.client.velocity[1], cl.frame.client.velocity[2] );
Q_snprintf( vel, sizeof( vel ), "%.2f %.2f %2.2f", cl.frame.client.velocity[0],cl.frame.client.velocity[1], cl.frame.client.velocity[2] );
else
Q_snprintf(vel, 64, "%.2f",speed);
Q_snprintf( vel, sizeof( vel ), "%.2f", speed );

Q_snprintf( msg, MAX_SYSPATH,
"pos: %.2f %.2f %.2f\n"
"ang: %.2f %.2f %.2f\n"
"vel.: %s", pPlayer->origin[0], pPlayer->origin[1], pPlayer->origin[2],
"vel: %s", pPlayer->origin[0], pPlayer->origin[1], pPlayer->origin[2],
pPlayer->angles[0], pPlayer->angles[1], pPlayer->angles[2],
vel );

Expand Down

0 comments on commit ee49dff

Please sign in to comment.