Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with fire rate test related to rounding tie-breaking towards evens #6252

Merged
merged 5 commits into from
Jun 16, 2024

Conversation

lL1l1
Copy link
Contributor

@lL1l1 lL1l1 commented Jun 13, 2024

Description of the proposed changes

Fixes the fire rate test to account for banker's rounding (tie break towards even numbers), and corrects erroneous fire rate changes from #5845.

Testing done on the proposed changes

Set my ACU's fire rate to 4/0.8 and added a log statement when the projectile is created to make sure it fires every 2/12 ticks.

Checklist

  • Changes are annotated, including comments where useful
  • Changes are documented in the changelog for the next game version

Changes fire rate interval from 13 ticks to 12.
CZAR SAMs, Pillar, Cyb cruiser AA, Megalith cannons
10/1.25 = 8 so it was already fine
@lL1l1 lL1l1 added type: bug area: automated testing related to automated testing of Lua files labels Jun 13, 2024
Copy link
Member

@Garanas Garanas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find again 👍 , always a nice reality check to see how many little mistakes my contributions have at times haha.

@lL1l1 lL1l1 merged commit e128667 into FAForever:develop Jun 16, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: automated testing related to automated testing of Lua files type: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants