Added debug key for toggling action sounds off. Touches every place that RageSound::Play is called, hope I didn't miss one.
This commit is contained in:
+3
-3
@@ -92,7 +92,7 @@ void Inventory::Load( PlayerState* pPlayerState )
|
||||
void Inventory::Update( float fDelta )
|
||||
{
|
||||
if( m_pPlayerState->m_bAttackEndedThisUpdate )
|
||||
m_soundItemEnding.Play();
|
||||
m_soundItemEnding.Play(false);
|
||||
|
||||
// TODO: remove use of PlayerNumber
|
||||
PlayerNumber pn = m_pPlayerState->m_PlayerNumber;
|
||||
@@ -183,7 +183,7 @@ void Inventory::AwardItem( int iItemIndex )
|
||||
a.fSecsRemaining = ITEM_DURATION_SECONDS;
|
||||
a.level = g_Items[iItemIndex].level;
|
||||
pInventory[iOpenSlot] = a;
|
||||
m_soundAcquireItem.Play();
|
||||
m_soundAcquireItem.Play(false);
|
||||
}
|
||||
// else not enough room to insert item
|
||||
}
|
||||
@@ -200,7 +200,7 @@ void Inventory::UseItem( int iSlot )
|
||||
|
||||
// remove the item
|
||||
pInventory[iSlot].MakeBlank();
|
||||
m_vpSoundUseItem[a.level]->Play();
|
||||
m_vpSoundUseItem[a.level]->Play(false);
|
||||
|
||||
PlayerNumber pnToAttack = OPPOSITE_PLAYER[pn];
|
||||
PlayerState *pPlayerStateToAttack = GAMESTATE->m_pPlayerState[pnToAttack];
|
||||
|
||||
Reference in New Issue
Block a user