-
Notifications
You must be signed in to change notification settings - Fork 60
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 errors in Weapon::Get_Percent_Ready_To_Fire #928
Fix errors in Weapon::Get_Percent_Ready_To_Fire #928
Conversation
bobtista
commented
May 24, 2023
•
edited by xezon
Loading
edited by xezon
- Fixes Assert in Weapon::Get_Percent_Ready_To_Fire() is hit after using clear mines ability #916
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #928 +/- ##
========================================
Coverage 2.53% 2.53%
========================================
Files 949 949
Lines 110171 110171
Branches 18880 18880
========================================
Hits 2797 2797
Misses 106972 106972
Partials 402 402 ☔ View full report in Codecov by Sentry. |
Having reviewed the original code, the correct fix is to rename time_left to total_time and total_time to time_left. and the other uses of both variables get swapped as well. And no we should not use the getter in this case. |
7ebe7c5
to
2f7ade7
Compare
2f7ade7
to
5584900
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified that the change in this PR is correct. Approved.
5584900
to
9e13820
Compare
I will check later if this fixes the bugs. |