OpenRA / ra2

A Red Alert 2 mod for the OpenRA game engine
GNU General Public License v3.0
970 stars 160 forks source link

Make unit deployment aware of deploy state #757

Open FlyingWombat opened 3 years ago

FlyingWombat commented 3 years ago

Deploying all units in a selection doesn't work right.
The current behavior is: for each unit in selection, toggle deploy state.

For example: if you have 3 GI, 2 deployed 1 undeployed, in the selection, and then press Deploy --> the result will be 1 deployed and 2 undeployed, instead of 3 deployed. This is a problem because the player can't deploy an entire selection of units.

The original RA2 behavior was: if any in selection is undeployed, deploy all; else undeploy all.