Jump to content

Altitude meter rounds improperly at unit boundaries


krbvax

Recommended Posts

Reported Version: v0.2.0 (latest) | Mods: none | Can replicate without mods? Yes 
OS: Wine 9.0-rc3 on Linux | CPU: AMD Ryzen 7 | GPU: NVIDIA 3060 Ti | RAM32GB

 

When the altitude of a vehicle is right at the boundary where the altitude display changes units (such as 99999m -> 100km), the program seems to either round inconsistently or choose the wrong transition point, such that the altitude may be displayed as 99 of the larger unit (99km instead of 99999m, for example).

Severity: Low

Steps to reproduce:

  1. Go to the VAB, create a simple vehicle with pod, tank, and engine, and send it to the launchpad.
  2. Launch the vehicle, giving it enough thrust to make time to use the cheats menu.
  3. Press Alt+F8 to open the cheats menu, and set the craft to a circular orbit of 100km above Kerbin.
  4. Ensure that the altitude display on the right side of the navball is set to Ground mode.
  5. Wait for the vehicle to move over the ocean.
  6. Observe the altitude display.

Expected behavior: The altitude display shows either "99999m" or "100km".

Observed behavior: The altitude display shows "99km".

 

Included Attachments:

99km.png.70f5c80eaac8e77f3bf299ce4f0c969

Link to comment
Share on other sites

×
×
  • Create New...