- 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:
Christoph Oelckers 2008-09-06 13:00:23 +00:00
commit 87f0ba0bd2
4 changed files with 8 additions and 6 deletions

View file

@ -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];