diff --git a/binaries/data/mods/public/simulation/components/Player.js b/binaries/data/mods/public/simulation/components/Player.js index 89986af1d5..451d0a4a63 100644 --- a/binaries/data/mods/public/simulation/components/Player.js +++ b/binaries/data/mods/public/simulation/components/Player.js @@ -373,12 +373,10 @@ Player.prototype.SetState = function(newState, resign) this.state = newState; let won = newState == "won"; - - // Reveal map to all or only that player let cmpRangeManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_RangeManager); - cmpRangeManager.SetLosRevealAll(won ? -1 : this.playerID, true); - - if (!won) + if (won) + cmpRangeManager.SetLosRevealAll(this.playerID, true); + else { // Reassign all player's entities to Gaia let entities = cmpRangeManager.GetEntitiesByPlayer(this.playerID);