Prevent kevlar.wav from overwriting gunpickup2.wav sound (#186)

This commit is contained in:
In-line 2017-11-01 19:48:28 +04:00 committed by Dmitry Novikov
parent bf4ec67a6f
commit 168838cd2a

View File

@ -1416,7 +1416,11 @@ void BuyItem(CBasePlayer *pPlayer, int iSlot)
pPlayer->pev->body = 1;
pPlayer->AddAccount(-DEFUSEKIT_PRICE, RT_PLAYER_BOUGHT_SOMETHING);
#ifdef REGAMEDLL_FIXES
EMIT_SOUND(ENT(pPlayer->pev), CHAN_VOICE, "items/kevlar.wav", VOL_NORM, ATTN_NORM);
#else
EMIT_SOUND(ENT(pPlayer->pev), CHAN_ITEM, "items/kevlar.wav", VOL_NORM, ATTN_NORM);
#endif
pPlayer->SendItemStatus();
}
break;