Ticket #4297: tentativeFix.patch

File tentativeFix.patch, 888 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..28f6ef9 100644
    a b Fogging.prototype.Activate = function()  
    3535        let numPlayers = Engine.QueryInterface(SYSTEM_ENTITY, IID_PlayerManager).GetNumPlayers();
    3636        for (let player = 0; player < numPlayers; ++player)
    3737        {
    38             if (this.seen[player])
     38            if (this.seen[player] && this.miraged[player])
    3939                this.LoadMirage(player);
    4040        }
    4141    }
    Fogging.prototype.OnVisibilityChanged = function(msg)  
    209209        this.miraged[msg.player] = false;
    210210        this.seen[msg.player] = true;
    211211    }
    212 
    213     if (msg.newVisibility == VIS_FOGGED && this.activated)
     212    if (this.activated)
    214213        this.LoadMirage(msg.player);
    215214};
    216215