mirror of
https://github.com/ENSL/NS.git
synced 2025-01-22 01:01:17 +00:00
cl_showspeed removed maxclimb and maxdive
This commit is contained in:
parent
86aef7782e
commit
5bbb473a44
1 changed files with 4 additions and 1 deletions
|
@ -2811,13 +2811,16 @@ void AvHHud::RenderShowSpeed()
|
|||
int speed = (int)Length(pmove->velocity);
|
||||
|
||||
maxSpeed = max(speed, maxSpeed);
|
||||
sprintf(buffer, "Speed = %d (%d) %d/%d", speed, maxSpeed, maxClimb, maxDive);
|
||||
sprintf(buffer, "Speed = %d (%d)", speed, maxSpeed/*, maxClimb, maxDive*/);
|
||||
mFont.DrawString(10, 10, buffer, theR, theG, theB);
|
||||
|
||||
float theGroundSpeed = sqrtf(pmove->velocity[0] * pmove->velocity[0] + pmove->velocity[1] * pmove->velocity[1]);
|
||||
maxGroundSpeed = max(theGroundSpeed, maxGroundSpeed);
|
||||
sprintf(buffer, "Ground speed = %d (%d)", (int)theGroundSpeed, maxGroundSpeed);
|
||||
mFont.DrawString(10, 12 + mFont.GetStringHeight(), buffer, theR, theG, theB);
|
||||
|
||||
//sprintf(buffer, "vangle0= %f vangle1= %f vangle2= %f)", pmove->angles[0], pmove->angles[1], pmove->angles[2]);
|
||||
//mFont.DrawString(10, 12 + mFont.GetStringHeight() * 2, buffer, theR, theG, theB);
|
||||
speedMeasured = true;
|
||||
}
|
||||
else if (speedMeasured == true) {
|
||||
|
|
Loading…
Reference in a new issue