Ticket #4323: 4323_endless.2.patch
File 4323_endless.2.patch, 1003 bytes (added by , 7 years ago) |
---|
-
binaries/data/mods/public/simulation/components/EndGameManager.js
24 24 this.skipAlliedVictoryCheck = true; 25 25 26 26 this.lastManStandingMessage = undefined; 27 28 this.endlessGame = false; 27 29 }; 28 30 29 31 EndGameManager.prototype.GetGameType = function() … … 46 48 this.gameType = newGameType; 47 49 this.gameTypeSettings = newSettings; 48 50 this.skipAlliedVictoryCheck = false; 51 this.endlessGame = newGameType == "endless"; 49 52 50 53 Engine.BroadcastMessage(MT_GameTypeChanged, {}); 51 54 }; … … 83 86 84 87 EndGameManager.prototype.AlliedVictoryCheck = function() 85 88 { 86 if (this.skipAlliedVictoryCheck )89 if (this.skipAlliedVictoryCheck || this.endlessGame) 87 90 return; 88 91 89 92 let cmpGuiInterface = Engine.QueryInterface(SYSTEM_ENTITY, IID_GuiInterface);