mirror of
https://github.com/lubosz/overte.git
synced 2025-08-28 12:06:24 +02:00
Immediately hide post-teleport play area if start teleporting again
This commit is contained in:
parent
06b4f51a08
commit
7396bf0dbe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue