Fix typo.

This commit is contained in:
r3tk0n 2019-03-11 09:58:20 -07:00
parent 1b628bc8e5
commit ec0cf3ee3a

View file

@ -37,7 +37,7 @@ Script.include("/~/system/libraries/controllers.js");
this.isReady = function (controllerData, deltaTime) {
if (HMD.active && Audio.pushToTalk && this.shouldTalk(controllerData)) {
Audio.pushingToTalk = true;
returnMakeRunningValues(true, [], []);
return makeRunningValues(true, [], []);
}
return makeRunningValues(false, [], []);
@ -46,6 +46,7 @@ Script.include("/~/system/libraries/controllers.js");
this.run = function (controllerData, deltaTime) {
if (this.shouldStopTalking(controllerData) || !Audio.pushToTalk) {
Audio.pushingToTalk = false;
print("Stop pushing to talk.");
return makeRunningValues(false, [], []);
}