- Changed listener structure to directly contain the sound environment instead
of getting it from the zone in the low level code. SVN r1201 (trunk)
This commit is contained in:
parent
bcbd2162b7
commit
87f0ba0bd2
4 changed files with 8 additions and 6 deletions
|
|
@ -1791,8 +1791,7 @@ void FMODSoundRenderer::UpdateListener(SoundListener *listener)
|
|||
else
|
||||
{
|
||||
underwater = (listener->underwater && snd_waterlp);
|
||||
assert (zones != NULL);
|
||||
env = zones[listener->ZoneNumber].Environment;
|
||||
env = listener->Environment;
|
||||
if (env == NULL)
|
||||
{
|
||||
env = DefaultEnvironments[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue