mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-25 10:18:47 +02:00
repairs to birdSongs for new hash injector format
This commit is contained in:
parent
ef2c181c98
commit
853c0197a1
1 changed files with 11 additions and 9 deletions
|
@ -33,9 +33,11 @@ function maybePlaySound(deltaTime) {
|
|||
// Set the location and other info for the sound to play
|
||||
var whichBird = Math.floor(Math.random() * birds.length);
|
||||
//print("playing sound # " + whichBird);
|
||||
var position = { x: lowerCorner.x + Math.random() * (upperCorner.x - lowerCorner.x),
|
||||
var position = {
|
||||
x: lowerCorner.x + Math.random() * (upperCorner.x - lowerCorner.x),
|
||||
y: lowerCorner.y + Math.random() * (upperCorner.y - lowerCorner.y),
|
||||
z: lowerCorner.z + Math.random() * (upperCorner.z - lowerCorner.z) };
|
||||
z: lowerCorner.z + Math.random() * (upperCorner.z - lowerCorner.z)
|
||||
};
|
||||
var options = {
|
||||
position: position,
|
||||
volume: BIRD_MASTER_VOLUME
|
||||
|
|
Loading…
Reference in a new issue