Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix infinite loop in HeliReturnToBase
This can happen if HeliAttack tells the heli to return to base when the player doesn't have any of the RearmBuildings available, because the activity queues itself after the HRTB, and the latter will, after a forced land, then queue back HeliAttack, which then immediately queues back HRTB and so on. Instead, we now assume that if there is no base to return to, going to NextActivity is pointless and don't queue NextActivity. RTB was likely ordered by HeliAttack due to lack of ammo, so resuming the attack would be pointless.
- Loading branch information