Immediately hide post-teleport play area if start teleporting again

This commit is contained in:
David Rowe 2018-09-25 11:39:41 +12:00
parent 06b4f51a08
commit 7396bf0dbe

View file

@ -450,7 +450,7 @@ Script.include("/~/system/libraries/controllers.js");
this.fadePlayArea = function () {
var i, length;
_this.PlayAreaFadeFactor = _this.PlayAreaFadeFactor - _this.PLAY_AREA_FADE_DELTA;
if (_this.PlayAreaFadeFactor > 0) {
if (_this.PlayAreaFadeFactor > 0 && !_this.isTeleportVisible) {
// Fade.
Overlays.editOverlay(_this.teleportedTargetOverlay, {
alpha: _this.PlayAreaFadeFactor * _this.TELEPORTED_TARGET_ALPHA