Fix: improved display of ballistic shields over/under a merc. In particular they are no longer drawn over buildings.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9079 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2021-06-13 13:14:34 +00:00
parent eb1ee4a71a
commit 680a8cb43a
2 changed files with 60 additions and 55 deletions
-23
View File
@@ -4279,9 +4279,6 @@ void HandleExplosionQueue( void )
}
}
// Flugente: riot shields
extern void ShowRiotShield( SOLDIERTYPE* pSoldier );
// Flugente: show warnings around armed timebombs both in map and inventories
void HandleExplosionWarningAnimations( )
{
@@ -4359,26 +4356,6 @@ void HandleExplosionWarningAnimations( )
}
}
}
// show riot shields
for ( UINT32 cnt = 0; cnt < TOTAL_SOLDIERS; ++cnt )
{
SOLDIERTYPE* pSoldier = MercPtrs[cnt];
if ( pSoldier && pSoldier->bActive && pSoldier->bInSector )
{
if ( (pSoldier->ubDirection == EAST ||
pSoldier->ubDirection == SOUTHEAST ||
pSoldier->ubDirection == SOUTH ||
pSoldier->ubDirection == SOUTHWEST ||
pSoldier->ubDirection == NORTHEAST)
&& pSoldier->bVisible != -1
&& pSoldier->IsRiotShieldEquipped( ) )
{
ShowRiotShield( pSoldier );
}
}
}
}
void DecayBombTimers( void )