mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 22:09:02 +02:00
Fix wave complete and game over sounds not playing at correct location
This commit is contained in:
parent
3e3ca6596e
commit
01784ba85a
1 changed files with 4 additions and 2 deletions
|
@ -377,10 +377,11 @@ GameManager.prototype = {
|
||||||
this.checkEnemyPositionsTimer = null;
|
this.checkEnemyPositionsTimer = null;
|
||||||
|
|
||||||
// Play after 1.5s to let other sounds finish playing
|
// Play after 1.5s to let other sounds finish playing
|
||||||
|
var self = this;
|
||||||
Script.setTimeout(function() {
|
Script.setTimeout(function() {
|
||||||
Audio.playSound(WAVE_COMPLETE_SOUND, {
|
Audio.playSound(WAVE_COMPLETE_SOUND, {
|
||||||
volume: 1.0,
|
volume: 1.0,
|
||||||
position: this.rootPosition
|
position: self.rootPosition
|
||||||
});
|
});
|
||||||
}, 1500);
|
}, 1500);
|
||||||
}
|
}
|
||||||
|
@ -445,10 +446,11 @@ GameManager.prototype = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var self = this;
|
||||||
Script.setTimeout(function() {
|
Script.setTimeout(function() {
|
||||||
Audio.playSound(GAME_OVER_SOUND, {
|
Audio.playSound(GAME_OVER_SOUND, {
|
||||||
volume: 1.0,
|
volume: 1.0,
|
||||||
position: this.rootPosition
|
position: self.rootPosition
|
||||||
});
|
});
|
||||||
}, 1500);
|
}, 1500);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue