Skip to content

Commit

Permalink
Fix sound output for some soundscripts
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Nov 26, 2024
1 parent e75a279 commit 0cf471c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dlls/cbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ bool CBaseEntity::EmitSoundScript(const SoundScript *soundScript, const SoundScr
if (soundScript)
{
const char* sample = soundScript->Wave();
return EmitSoundScriptSelectedSample(soundScript, sample);
return EmitSoundScriptSelectedSample(soundScript, sample, paramsOverride, flags);
}
return false;
}
Expand All @@ -800,7 +800,7 @@ bool CBaseEntity::EmitSoundScriptSelectedSample(const SoundScript* soundScript,
if (soundScript)
{
const char* sample = soundScript->Wave(sampleIndex);
return EmitSoundScriptSelectedSample(soundScript, sample);
return EmitSoundScriptSelectedSample(soundScript, sample, paramsOverride, flags);
}
return false;
}
Expand Down

0 comments on commit 0cf471c

Please sign in to comment.