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

Handle artillery strike against offboard unit that has disengaged. #4890

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

neoancient
Copy link
Member

Another issue with offboard artillery disengagement. I thought we had already fixed this one.
When the round lands, report the missing target instead of choking.

Fixes #4794.

Report r = new Report(3158);
r.indent();
r.subject = subjectId;
r.add(wtype.getName());

Check warning

Code scanning / CodeQL

Dereferenced variable may be null

Variable [wtype](1) may be null at this access as suggested by [this](2) null guard.
Report r = new Report(3158);
r.indent();
r.subject = subjectId;
r.add(wtype.getName());

Check warning

Code scanning / CodeQL

Dereferenced variable may be null

Variable [wtype](1) may be null at this access as suggested by [this](2) null guard.
@Sleet01
Copy link
Collaborator

Sleet01 commented Nov 14, 2023

I thought we had already fixed this one.

I thought so too, but it looks like I only solved the issue with counter-battery fire, not firing on off-board fleeing targets in general -_-;

Copy link
Collaborator

@Sleet01 Sleet01 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@neoancient neoancient merged commit 61330da into master Nov 15, 2023
@neoancient neoancient deleted the artillery_target_disengaged branch December 12, 2023 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Game hangs on 'firing phase'
3 participants