diff --git a/binaries/data/mods/public/maps/scenarios/Demo_Trading.xml b/binaries/data/mods/public/maps/scenarios/Demo_Trading.xml index ae2f742dde..20c8dcf631 100644 --- a/binaries/data/mods/public/maps/scenarios/Demo_Trading.xml +++ b/binaries/data/mods/public/maps/scenarios/Demo_Trading.xml @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:c397e413486051c2b2f59b296044f3ed90daa788c47fd7e9435495f6a6913ec1 -size 5923 +oid sha256:026f2b3cf2e86266fdef86396060f55582f64b9e3b610746a95a1eab256131c9 +size 5924 diff --git a/binaries/data/mods/public/simulation/components/EndGameManager.js b/binaries/data/mods/public/simulation/components/EndGameManager.js index 9f108c675f..8ba7821676 100644 --- a/binaries/data/mods/public/simulation/components/EndGameManager.js +++ b/binaries/data/mods/public/simulation/components/EndGameManager.js @@ -24,6 +24,8 @@ EndGameManager.prototype.Init = function() this.skipAlliedVictoryCheck = true; this.lastManStandingMessage = undefined; + + this.endlessGame = false; }; EndGameManager.prototype.GetGameType = function() @@ -41,6 +43,7 @@ EndGameManager.prototype.SetGameType = function(newGameType, newSettings = {}) this.gameType = newGameType; this.gameTypeSettings = newSettings; this.skipAlliedVictoryCheck = false; + this.endlessGame = newGameType == "endless"; Engine.BroadcastMessage(MT_GameTypeChanged, {}); }; @@ -78,7 +81,7 @@ EndGameManager.prototype.GetAlliedVictory = function() EndGameManager.prototype.AlliedVictoryCheck = function() { - if (this.skipAlliedVictoryCheck) + if (this.skipAlliedVictoryCheck || this.endlessGame) return; let cmpGuiInterface = Engine.QueryInterface(SYSTEM_ENTITY, IID_GuiInterface);