-
Notifications
You must be signed in to change notification settings - Fork 291
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
Issue #2652 TacOps BA crits #4046
Conversation
* | ||
* @param isAttackingConvInfantry Set to true when attacked by CI, as these cannot score TacOps crits | ||
*/ | ||
public HitData rollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode, |
Check notice
Code scanning / CodeQL
Useless parameter
* @param isAttackingConvInfantry Set to true when attacked by CI, as these cannot score TacOps crits | ||
*/ | ||
public HitData rollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode, | ||
int cover, boolean isAttackingConvInfantry) { |
Check notice
Code scanning / CodeQL
Useless parameter
public HitData rollHitLocation(int table, int side, int aimedLocation, AimingMode aimingMode, | ||
int cover, boolean isAttackingConvInfantry) { |
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.
Why add this method with two unused parameters? Keeping it consistent with the general rollHitLocation methods?
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.
More like, didn't think about it. I guess it's not worth getting the compiler warnings and github alerts for it, so I removed them.
Fixes #2652
It might make sense not to merge this right before a release.