mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
use isPlaying property instead of getter
This commit is contained in:
parent
f9174366dc
commit
05b7cd819e
2 changed files with 3 additions and 3 deletions
|
@ -85,7 +85,7 @@ function checkHands(deltaTime) {
|
|||
var chord = Controller.getTriggerValue(chordHand);
|
||||
|
||||
if (volume > 1.0) volume = 1.0;
|
||||
if ((chord > 0.1) && soundPlaying.isPlaying()) {
|
||||
if ((chord > 0.1) && soundPlaying.isPlaying) {
|
||||
// If chord finger trigger pulled, stop current chord
|
||||
print("stopped sound");
|
||||
soundPlaying.stop();
|
||||
|
@ -132,7 +132,7 @@ function checkHands(deltaTime) {
|
|||
}
|
||||
|
||||
function playChord(position, volume) {
|
||||
if (soundPlaying.isPlaying()) {
|
||||
if (soundPlaying.isPlaying) {
|
||||
print("stopped sound");
|
||||
soundPlaying.stop();
|
||||
}
|
||||
|
|
|
@ -354,7 +354,7 @@ function update(deltaTime) {
|
|||
Overlays.editOverlay(descriptionText, { position: textOverlayPosition() });
|
||||
|
||||
// if the reticle is up then we may need to play the next muzak
|
||||
if (currentMuzakInjector && !currentMuzakInjector.isPlaying()) {
|
||||
if (currentMuzakInjector && !currentMuzakInjector.isPlaying) {
|
||||
playNextMuzak();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue