- 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
|
|
@ -1641,7 +1641,8 @@ static void S_SetListener(SoundListener &listener, AActor *listenactor)
|
|||
listener.position.Y = FIXED2FLOAT(listenactor->y);
|
||||
listener.position.Z = FIXED2FLOAT(listenactor->z);
|
||||
listener.underwater = listenactor->waterlevel == 3;
|
||||
listener.ZoneNumber = listenactor->Sector->ZoneNumber;
|
||||
assert(zones != NULL);
|
||||
listener.Environment = zones[listenactor->Sector->ZoneNumber].Environment;
|
||||
listener.valid = true;
|
||||
}
|
||||
else
|
||||
|
|
@ -1649,8 +1650,8 @@ static void S_SetListener(SoundListener &listener, AActor *listenactor)
|
|||
listener.angle = 0;
|
||||
listener.position.Zero();
|
||||
listener.velocity.Zero();
|
||||
listener.underwater=false;
|
||||
listener.ZoneNumber=0;
|
||||
listener.underwater = false;
|
||||
listener.Environment = NULL;
|
||||
listener.valid = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue