cl_showspeed removed maxclimb and maxdive

This commit is contained in:
pierow 2021-01-30 20:40:15 -05:00
parent 86aef7782e
commit 5bbb473a44

View file

@ -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) {