Merge fix for blocked door sound from bubblemod.

This commit is contained in:
Night Owl 2017-07-06 00:44:14 +05:00
parent 6e1059026f
commit b7d1bd3235
1 changed files with 5 additions and 0 deletions

View File

@ -750,6 +750,11 @@ void CBaseDoor::Blocked( CBaseEntity *pOther )
// so let it just squash the object to death real fast
if( m_flWait >= 0 )
{
// BMod Start - Door sound fix.
if( !FBitSet( pev->spawnflags, SF_DOOR_SILENT ) )
STOP_SOUND( ENT( pev ), CHAN_STATIC, (char*)STRING( pev->noiseMoving ) );
// BMod End
if( m_toggle_state == TS_GOING_DOWN )
{
DoorGoUp();