ambient_generic: fix regression in the old style sound mechanism
This commit is contained in:
parent
a5ecd18047
commit
f183bfc571
1 changed files with 4 additions and 0 deletions
|
@ -359,6 +359,8 @@ ambient_generic::SendEntity(entity ePEnt, float flChanged)
|
|||
|
||||
if (m_bIsModern) {
|
||||
flChanged |= AMBIENT_MODERN;
|
||||
} else {
|
||||
flChanged &= ~AMBIENT_MODERN;
|
||||
}
|
||||
|
||||
WriteFloat(MSG_ENTITY, flChanged);
|
||||
|
@ -422,8 +424,10 @@ ambient_generic::ReceiveEntity(float isnew, float flChanged)
|
|||
|
||||
if (m_bLoops == true) {
|
||||
if (flChanged & AMBIENT_MODERN) {
|
||||
print("MODERN!\n");
|
||||
Sound_Update(this, CHAN_BODY, Sound_GetID(m_strActivePath), m_flVolume);
|
||||
} else {
|
||||
print("OLD!\n");
|
||||
soundupdate(this, CHAN_BODY,
|
||||
m_strActivePath, m_flVolume, m_flRadius, m_flPitch, 0, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue