Ticket #4297: fixv0.patch

File fixv0.patch, 684 bytes (added by wraitii, 8 years ago)
  • binaries/data/mods/public/simulation/components/Fogging.js

    diff --git a/binaries/data/mods/public/simulation/components/Fogging.js b/binaries/data/mods/public/simulation/components/Fogging.js
    index ce191e3..778f296 100644
    a b Fogging.prototype.Activate = function()  
    3636        for (let player = 0; player < numPlayers; ++player)
    3737        {
    3838            if (this.seen[player])
    39                 this.LoadMirage(player);
     39            {
     40                let cmpRangeManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_RangeManager);
     41                if (cmpRangeManager.GetLosVisibility(this.entity, player) == "hidden")
     42                    this.LoadMirage(player);
     43            }
    4044        }
    4145    }
    4246};