Changed behavior of Select All button in movement box. Now it will select remaining soldiers, if only some of them are selected instead of deselecting them. It will of course still deselect all if all are selected.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9286 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Shadooow
2022-01-31 08:46:52 +00:00
parent 6ca75431ae
commit 52a42d0354
+11 -1
View File
@@ -4259,7 +4259,17 @@ void MoveMenuBtnCallback(MOUSE_REGION * pRegion, INT32 iReason )
if (iRegionType == ALL_SQUADS)
{
if (IsAnythingSelectedForMoving())
bool all_selected_already = true;
for (int i = 0; i < iListIndex; i++)
{
if (!AllSoldiersInSquadSelected(iSquadMovingList[i]))
{
all_selected_already = false;
break;
}
}
if (all_selected_already)
{
for (int i = 0; i < iListIndex; i++)
{