mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user