mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 03:58:07 +02:00
Fix bug in tutorialZone using self instead of this
This commit is contained in:
parent
e6d2900bec
commit
7227e5770a
1 changed files with 5 additions and 4 deletions
|
@ -105,7 +105,7 @@ if (!Function.prototype.bind) {
|
||||||
|
|
||||||
// If the start zone was exited, and the tutorial hasn't started, go ahead and
|
// If the start zone was exited, and the tutorial hasn't started, go ahead and
|
||||||
// re-enable the HUD/Overlays
|
// re-enable the HUD/Overlays
|
||||||
if (!self.tutorialManager) {
|
if (!this.tutorialManager) {
|
||||||
Menu.setIsOptionChecked("Overlays", true);
|
Menu.setIsOptionChecked("Overlays", true);
|
||||||
MyAvatar.shouldRenderLocally = true;
|
MyAvatar.shouldRenderLocally = true;
|
||||||
setAwayEnabled(true);
|
setAwayEnabled(true);
|
||||||
|
@ -120,12 +120,13 @@ if (!Function.prototype.bind) {
|
||||||
print("TutorialZone | EXITED THE TUTORIAL AREA");
|
print("TutorialZone | EXITED THE TUTORIAL AREA");
|
||||||
if (this.token) {
|
if (this.token) {
|
||||||
print("TutorialZone | Destroying token");
|
print("TutorialZone | Destroying token");
|
||||||
|
//HMD.requestHideHandControllers();
|
||||||
this.token.destroy();
|
this.token.destroy();
|
||||||
this.token = null;
|
this.token = null;
|
||||||
}
|
}
|
||||||
if (self.tutorialManager) {
|
if (this.tutorialManager) {
|
||||||
self.tutorialManager.stopTutorial();
|
this.tutorialManager.stopTutorial();
|
||||||
self.tutorialManager = null;
|
this.tutorialManager = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue