Call DSP_UpdateSoundscape(), seems I forgot all about it!
This commit is contained in:
parent
966f376942
commit
e28de86415
2 changed files with 6 additions and 1 deletions
|
@ -438,6 +438,7 @@ CSQC_UpdateView(float w, float h, float focus)
|
|||
}
|
||||
|
||||
EFX_UpdateListener();
|
||||
DSP_UpdateSoundscape();
|
||||
|
||||
if (autocvar_s_al_debug)
|
||||
EFX_DebugInfo();
|
||||
|
|
|
@ -71,6 +71,8 @@ env_soundscape::env_soundscape(void)
|
|||
g_scapes+=1;
|
||||
m_iID = g_scapes;
|
||||
m_iRadius = 1024;
|
||||
setsize(this, [0,0,0], [0,0,0]);
|
||||
Init();
|
||||
setorigin(this, origin);
|
||||
}
|
||||
|
||||
|
@ -93,6 +95,8 @@ DSP_UpdateSoundscape(void)
|
|||
pSeat = &g_seats[s];
|
||||
vecPlayer = pSeat->m_vecPredictedOrigin;
|
||||
|
||||
g_entSoundScape = __NULL__;
|
||||
|
||||
float bestdist = 999999;
|
||||
for (entity e = world; (e = find(e, classname, "env_soundscape"));) {
|
||||
env_soundscape scape = (env_soundscape)e;
|
||||
|
@ -117,7 +121,7 @@ DSP_UpdateSoundscape(void)
|
|||
}
|
||||
|
||||
/* fix? */
|
||||
if (g_entOldScape != world) {
|
||||
if (g_entOldScape != __NULL__) {
|
||||
/* if the shader isn't any different... don't bother changing it? */
|
||||
if (g_entOldScape.m_iShader == g_entSoundScape.m_iShader) {
|
||||
g_entSoundScape = g_entOldScape;
|
||||
|
|
Loading…
Reference in a new issue