mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Enhancements (by Buggler)
- Allows all mercs cover display view by using hotkey '='; multi-selected mercs view only possible in realtime mode git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6551 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -530,11 +530,29 @@ void CalculateCover()
|
||||
CalculateCoverForSoldier( pSoldier, sGridNo, ubZ, bCover );
|
||||
fInverseColor = FALSE;
|
||||
}
|
||||
else if ( gubDrawMode == COVER_DRAW_MERC_VIEW ) // single view from your merc
|
||||
else if ( gubDrawMode == COVER_DRAW_MERC_VIEW )
|
||||
{
|
||||
// reset cover value
|
||||
bCover = MAX_COVER;
|
||||
CalculateCoverFromSoldier( pSoldier, sGridNo, ubZ, bCover );
|
||||
if ( gTacticalStatus.fAtLeastOneGuyOnMultiSelect ) // view of selected mercs
|
||||
{
|
||||
// OK, loop through all guys who are 'multi-selected' and
|
||||
INT32 cnt;
|
||||
cnt = gTacticalStatus.Team[ gbPlayerNum ].bFirstID;
|
||||
for ( pSoldier = MercPtrs[ cnt ]; cnt <= gTacticalStatus.Team[ gbPlayerNum ].bLastID; cnt++, pSoldier++ )
|
||||
{
|
||||
if ( pSoldier->bActive && pSoldier->bInSector )
|
||||
{
|
||||
if ( pSoldier->flags.uiStatusFlags & SOLDIER_MULTI_SELECTED )
|
||||
{
|
||||
CalculateCoverFromSoldier( pSoldier, sGridNo, ubZ, bCover );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else // single view from your merc
|
||||
CalculateCoverFromSoldier( pSoldier, sGridNo, ubZ, bCover );
|
||||
|
||||
fInverseColor = TRUE; // we don't want to show the cover for the enemy
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user