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 more segfault behaviour for turrets. #2533

Merged
merged 1 commit into from
Apr 1, 2023

Conversation

KheirFerrum
Copy link
Collaborator

Summary

SUMMARY: Bugfixes "Fix more segfault behaviour for turrets."

Purpose of change

Fix #2468 causing issues with manually aimed turrets because they don't use the aim_activity_actor, so activity in target_ui leads to a nullptr.

Describe the solution

Removes that consideration entirely for turret aiming.

Describe alternatives you've considered

Make turrets route through same aim_activity_actor code.

  • One day maybe? Dunno if it's worth it or not.

Testing

Need to stand on the location of the turret in the vehicle part and fire it manually.

Additional context

Probably the worst PR I've screwed up yet.

Turret shooting doesn't use aim_activity_actor at all.
@github-actions github-actions bot added the src PR changes related to source code. label Apr 1, 2023
@KheirFerrum KheirFerrum changed the title Update ranged.cpp Fix more segfault behaviour for turrets. Apr 1, 2023
@Firestorm01X2
Copy link
Collaborator

Checked manaul turet fire on humvee. It not crashing for me.

@Firestorm01X2 Firestorm01X2 merged commit e809af5 into cataclysmbnteam:upload Apr 1, 2023
scarf005 pushed a commit to scarf005/Cataclysm-BN that referenced this pull request Apr 2, 2023
Turret shooting doesn't use aim_activity_actor at all.
@KheirFerrum KheirFerrum deleted the fire_gun-fix-2 branch April 11, 2023 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src PR changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants