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