Vanilla-Conquer icon indicating copy to clipboard operation
Vanilla-Conquer copied to clipboard

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

Open ChthonVII opened this issue 2 years ago • 0 comments

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.

ChthonVII avatar Oct 28 '22 07:10 ChthonVII