src/game/Tactical/Handle_UI.cc
FOR_EACH_IN_TEAM(s, OUR_TEAM)
	{
		// Check if this guy is OK to control....
		if (OkControllableMerc(s) && !(s->uiStatusFlags & (SOLDIER_VEHICLE | SOLDIER_PASSENGER | SOLDIER_DRIVER)))
		{
			if ( !_KeyDown( ALT ) )
			{
				s->uiStatusFlags &= ~SOLDIER_MULTI_SELECTED;
			}

			// Get screen pos of gridno......
			GetGridNoScreenXY(s->sGridNo, &sScreenX, &sScreenY);

			// ATE: If we are in a hiehger interface level, subttrasct....
			if ( gsInterfaceLevel == 1 )
			{
				sScreenY -= 50;
			}

			if (IsPointInScreenRect(sScreenX, sScreenY, aRect))
			{
				// Adjust this guy's flag...
				s->uiStatusFlags |= SOLDIER_MULTI_SELECTED;
			}
		}
	}
// ATE: Now loop through our guys and see if any fit!
Now loop through our guys and see if any fit!
Now loop through our guys and see if any fit!
FOR_EACH_IN_TEAM(s, OUR_TEAM)
	{
		if (OkControllableMerc(s) && !(s->uiStatusFlags & (SOLDIER_VEHICLE | SOLDIER_PASSENGER | SOLDIER_DRIVER)))
		{
			if ( !_KeyDown( ALT ) )
			{
				s->uiStatusFlags &= ~SOLDIER_MULTI_SELECTED;
			}
			GetGridNoScreenXY(s->sGridNo, &sScreenX, &sScreenY);
			if ( gsInterfaceLevel == 1 )
			{
				sScreenY -= 50;
			}
			if (IsPointInScreenRect(sScreenX, sScreenY, aRect))
			{
				s->uiStatusFlags |= SOLDIER_MULTI_SELECTED;
			}
		}
	}
FOR_EACH_IN_TEAM ( s , OUR_TEAM ) { if ( OkControllableMerc ( s ) && ! ( s -> uiStatusFlags & ( SOLDIER_VEHICLE | SOLDIER_PASSENGER | SOLDIER_DRIVER ) ) ) { if ( ! _KeyDown ( ALT ) ) { s -> uiStatusFlags &= ~ SOLDIER_MULTI_SELECTED ; } GetGridNoScreenXY ( s -> sGridNo , & sScreenX , & sScreenY ) ; if ( gsInterfaceLevel == 1 ) { sScreenY -= 50 ; } if ( IsPointInScreenRect ( sScreenX , sScreenY , aRect ) ) { s -> uiStatusFlags |= SOLDIER_MULTI_SELECTED ; } } }
ATE: Now loop through our guys and see if any fit!
ATE : Now loop through our guys and see if any fit!
// Check if this guy is OK to control.... // Get screen pos of gridno...... // ATE: If we are in a hiehger interface level, subttrasct.... // Adjust this guy's flag...