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

[TD] Gunboats continue to fixate on target even after it leaves range #847

Open
ChthonVII opened this issue Oct 28, 2022 · 0 comments
Open

Comments

@ChthonVII
Copy link
Contributor

The TD gunboats fail to switch targets when their current target goes out of range. The cause is that Target_Something_Nearby() will only alter a valid TarCom if THREAT_RANGE is passed, but THREAT_AREA is used for gunboats.

The fix is to explicitly assign TARGET_NONE as the target before calling Target_Something_Nearby().

Example fix here.

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

No branches or pull requests

1 participant