warzone2100
warzone2100 copied to clipboard
don't repair flying vtols
but still can repair them when they land.
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.
closing because https://github.com/Warzone2100/warzone2100/pull/2840