Skip to content

Current Gear HUD is limited to 10 gears #323

Description

@HBbrody

Describe the bug
The Current Gear HUD briefly shows 10 instead of the selected gear while shifting.

CurrentGearOverlay.Render clamps the gear with Clip(0, 11) before indexing _gearBitmaps. Index 11 draws a 10, so any value above the range is drawn as 10 rather than ignored.

To Reproduce

  1. Activate the Current Gear HUD, Forza Horizon 6.
  2. Drive and shift up and down repeatedly.
  3. Now and then a 10 flashes up for a frame or two.

Expected behavior
The selected gear, or the previous one held over, never a gear the car does not have.

Desktop

  • OS: Windows 11
  • Version: Race Element 2.7.1.6

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions