2
0
mirror of https://github.com/FWGS/hlsdk-xash3d synced 2024-11-25 19:29:13 +01:00

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

View File

@ -750,6 +750,11 @@ void CBaseDoor::Blocked( CBaseEntity *pOther )
// so let it just squash the object to death real fast // so let it just squash the object to death real fast
if( m_flWait >= 0 ) 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 ) if( m_toggle_state == TS_GOING_DOWN )
{ {
DoorGoUp(); DoorGoUp();