Skip to content

Commit 8cdaf3e

Browse files
committed
soundemittersystem: Client-only sounds should play again
See ValveSoftware/source-sdk-2013#936
1 parent 52e0111 commit 8cdaf3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

game/shared/SoundEmitterSystem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ void CBaseEntity::EmitSound( const char *soundname, float soundtime /*= 0.0f*/,
11701170
params.m_pflSoundDuration = duration;
11711171
params.m_bWarnOnDirectWaveReference = true;
11721172

1173-
// dimhotepus: See https://github.com/ValveSoftware/source-sdk-2013/pull/936
1173+
// dimhotepus: Fix client-side only sounds playback
11741174
int iEntIndex = entindex();
11751175
#if defined( CLIENT_DLL )
11761176
if ( iEntIndex == -1 )
@@ -1200,7 +1200,7 @@ void CBaseEntity::EmitSound( const char *soundname, HSOUNDSCRIPTHANDLE& handle,
12001200
params.m_pflSoundDuration = duration;
12011201
params.m_bWarnOnDirectWaveReference = true;
12021202

1203-
// dimhotepus: See https://github.com/ValveSoftware/source-sdk-2013/pull/936
1203+
// dimhotepus: Fix client-side only sounds playback
12041204
int iEntIndex = entindex();
12051205
#if defined( CLIENT_DLL )
12061206
if ( iEntIndex == -1 )

0 commit comments

Comments
 (0)