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

don't repair flying vtols #2823

Conversation

gantsevdenis
Copy link
Contributor

but still can repair them when they land.

@past-due past-due added this to the 4.3.0-beta1 milestone Sep 20, 2022
@KJeff01
Copy link
Member

KJeff01 commented Sep 20, 2022

Not sure if anyone cares but it will mean you won't be able to repair any transporter unit as they can't land on VTOL pads.

bool isFlying(const DROID *psDroid)
{
	return (asPropulsionStats + psDroid->asBits[COMP_PROPULSION])->propulsionType == PROPULSION_TYPE_LIFT
		   && (psDroid->sMove.Status != MOVEINACTIVE || isTransporter(psDroid));
}

In which case a !isTransporter() can be put around these changes to avoid that.

@gantsevdenis
Copy link
Contributor Author

closing because #2840

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.

None yet

3 participants