mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
Fix: wrong sound played
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8505 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -4626,7 +4626,7 @@ void AttackTarget( SOLDIERCELL *pAttacker, SOLDIERCELL *pTarget )
|
||||
if( pTarget->pSoldier->stats.bLife >= CONSCIOUSNESS || pTarget->uiFlags & CELL_CREATURE )
|
||||
{
|
||||
if( gpAR->fSound )
|
||||
pTarget->pSoldier->DoMercBattleSound( (INT8)( BATTLE_SOUND_HIT1 + PreRandom( 2 ) ) );
|
||||
pTarget->pSoldier->DoMercBattleSound( BATTLE_SOUND_HIT1 );
|
||||
}
|
||||
if( !(pTarget->uiFlags & CELL_CREATURE) && iNewLife < OKLIFE && pTarget->pSoldier->stats.bLife >= OKLIFE )
|
||||
{
|
||||
@@ -4844,7 +4844,7 @@ void TargetHitCallback( SOLDIERCELL *pTarget, INT32 index )
|
||||
if( pTarget->pSoldier->stats.bLife >= CONSCIOUSNESS )
|
||||
{
|
||||
if( gpAR->fSound )
|
||||
pTarget->pSoldier->DoMercBattleSound( (INT8)( BATTLE_SOUND_HIT1 + PreRandom( 2 ) ) );
|
||||
pTarget->pSoldier->DoMercBattleSound( BATTLE_SOUND_HIT1 );
|
||||
}
|
||||
|
||||
if( iNewLife < OKLIFE && pTarget->pSoldier->stats.bLife >= OKLIFE )
|
||||
|
||||
Reference in New Issue
Block a user