warzone2100 icon indicating copy to clipboard operation
warzone2100 copied to clipboard

don't repair flying vtols

Open gantsevdenis opened this issue 2 years ago • 1 comments

but still can repair them when they land.

gantsevdenis avatar Sep 20 '22 10:09 gantsevdenis

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.

KJeff01 avatar Sep 20 '22 15:09 KJeff01

closing because https://github.com/Warzone2100/warzone2100/pull/2840

gantsevdenis avatar Oct 05 '22 11:10 gantsevdenis